I uploaded a test file and when I tried to download it the file name and extention were changed.
How can I stop this from happening?
How Can I Stop File Name And Extentions Changes?
Subject: Re: How Can I Stop File Name And Extentions Changes?
OPEN pafile/modules/pa_download.php
FIND
REPLACE WITH
It is not a bug :mrgreen:
It is known error running apache on windows OS
FIND
elseif((!empty($mirrors_data) && $mirror_id == -1) || (empty($mirrors_data)))
{
//$real_filename = $file_data['real_name'];
$real_filename = '"'. $file_data['real_name']. '"';
$physical_filename = $file_data['unique_name'];
$upload_dir = (!empty($file_data['upload_dir'])) ? $file_data['upload_dir'] : $pafiledb_config['upload_dir'];
$file_url = $file_data['file_dlurl'];
}
{
//$real_filename = $file_data['real_name'];
$real_filename = '"'. $file_data['real_name']. '"';
$physical_filename = $file_data['unique_name'];
$upload_dir = (!empty($file_data['upload_dir'])) ? $file_data['upload_dir'] : $pafiledb_config['upload_dir'];
$file_url = $file_data['file_dlurl'];
}
REPLACE WITH
elseif((!empty($mirrors_data) && $mirror_id == -1) || (empty($mirrors_data)))
{
$real_filename = $file_data['real_name'];
$physical_filename = $file_data['unique_name'];
$upload_dir = (!empty($file_data['upload_dir'])) ? $file_data['upload_dir'] : $pafiledb_config['upload_dir'];
$file_url = $file_data['file_dlurl'];
}
{
$real_filename = $file_data['real_name'];
$physical_filename = $file_data['unique_name'];
$upload_dir = (!empty($file_data['upload_dir'])) ? $file_data['upload_dir'] : $pafiledb_config['upload_dir'];
$file_url = $file_data['file_dlurl'];
}
It is not a bug :mrgreen:
It is known error running apache on windows OS
Subject: Re: How Can I Stop File Name And Extentions Changes?
I should have fixed it in 058... isn'it? :roll:
Subject: Re: How Can I Stop File Name And Extentions Changes?
Last edited by MrWizard on Wed 06 Sep, 2006 15:50; edited 1 time in total
Thanks for the help. That fixed the problem. DIFUS you are the man!
Last edited by MrWizard on Wed 06 Sep, 2006 15:50; edited 1 time in total
Page 1 of 1
You cannot post new topicsYou cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events
This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by Icy Phoenix based on phpBB
Generation Time: 0.2036s (PHP: 8% SQL: 92%)
SQL queries: 13 - Debug Off - GZIP Enabled