https://www.icyphoenix.com/viewtopic.php?f=29&t=290
-----------------------------------
MrWizard
Wed 06 Sep, 2006 03:27

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

Re: How Can I Stop File Name And Extentions Changes?
-----------------------------------
OPEN [b]pafile/modules/pa_download.php[/b]
FIND
[codeblock]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'];
		}[/codeblock]
REPLACE WITH
[codeblock]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'];
		}[/codeblock]

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


-----------------------------------
Mighty Gorgon
Wed 06 Sep, 2006 13:32

Re: How Can I Stop File Name And Extentions Changes?
-----------------------------------
I should have fixed it in 058... isn'it? :roll:


-----------------------------------
MrWizard
Wed 06 Sep, 2006 15:23

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

Re: How Can I Stop File Name And Extentions Changes?
-----------------------------------
[quote user="Mighty Gorgon" post="2504"]I should have fixed it in 058... isn'it? :roll:[/quote]


it is not fixed in 058
and it is no need


