How Can I Stop File Name And Extentions Changes? »  Show posts from    to     

Icy Phoenix


Old Bugs - How Can I Stop File Name And Extentions Changes?



MrWizard [ Wed 06 Sep, 2006 03:27 ]
Post subject: How Can I Stop File Name And Extentions Changes?
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?


difus [ Wed 06 Sep, 2006 10:02 ]
Post subject: Re: How Can I Stop File Name And Extentions Changes?
OPEN pafile/modules/pa_download.php
FIND
Code: [Hide] [Select]
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'];
}

REPLACE WITH
Code: [Hide] [Select]
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'];
}


It is not a bug
It is known error running apache on windows OS


Mighty Gorgon [ Wed 06 Sep, 2006 13:32 ]
Post subject: Re: How Can I Stop File Name And Extentions Changes?
I should have fixed it in 058... isn'it?


MrWizard [ Wed 06 Sep, 2006 15:23 ]
Post subject: Re: How Can I Stop File Name And Extentions Changes?
Thanks for the help. That fixed the problem. DIFUS you are the man!


difus [ Wed 06 Sep, 2006 15:48 ]
Post subject: Re: How Can I Stop File Name And Extentions Changes?
Mighty Gorgon wrote: [View Post]
I should have fixed it in 058... isn'it?



it is not fixed in 058
and it is no need




Powered by Icy Phoenix