Uploaded File Not Found Error - Specially with .msg (emails)
Posted: Wed Dec 03, 2008 11:43 pm
Hi all
I have a page which is used to upload files to a server and later on the users can view those files by simply accessing the default page. basically a very simple reports system. I have a form which is used to get the information from user, report type etc, and the File. The reports are uploaded successfully and are viewed and downloaded successfully BUT...
Only for a few extensions like .exe, .msi, .msg (outlook emails) The file is not found and page cannot be found error appears.
I thought this might be because the the server is not allowing such files to execute or run on server side due to some security or due to very long files names but... Even if the name of the file is "myreport.msg" or "myprogram.exe" . The file is not found.
But actually the files resides there and all other extensions are working fine and are located in the same folder.
I am using php 5, mysql 5 and IIS 6 on windows 2003 server.
I have a page which is used to upload files to a server and later on the users can view those files by simply accessing the default page. basically a very simple reports system. I have a form which is used to get the information from user, report type etc, and the File. The reports are uploaded successfully and are viewed and downloaded successfully BUT...
Only for a few extensions like .exe, .msi, .msg (outlook emails) The file is not found and page cannot be found error appears.
I thought this might be because the the server is not allowing such files to execute or run on server side due to some security or due to very long files names but... Even if the name of the file is "myreport.msg" or "myprogram.exe" . The file is not found.
But actually the files resides there and all other extensions are working fine and are located in the same folder.
I am using php 5, mysql 5 and IIS 6 on windows 2003 server.