Page 1 of 1

Uploaded File Not Found Error - Specially with .msg (emails)

Posted: Wed Dec 03, 2008 11:43 pm
by khalidmehmoodawan
Hi all 8O

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.

Re: Uploaded File Not Found Error - Specially with .msg (emails)

Posted: Thu Dec 04, 2008 1:04 am
by requinix
.msi and .exe are executable files. There's probably a setting somewhere in IIS about how to treat them.

Re: Uploaded File Not Found Error - Specially with .msg (emails)

Posted: Thu Dec 04, 2008 1:09 am
by khalidmehmoodawan
thats right. i have also tried the scripts and executables for this virtual directory, but its still not working. :x

Also , .msg files i think are not executables. :roll:

Re: Uploaded File Not Found Error - Specially with .msg (emails)

Posted: Thu Dec 04, 2008 2:02 am
by requinix
khalidmehmoodawan wrote:Also , .msg files i think are not executables. :roll:
True, but I bet if you were to find more extensions that elicit this behavior then you'd notice a pattern across all of them.

IIS must have some kind of logs. Look in there: it might contain a clue or reason as to why the server says the file isn't found.