mime type still reported?

K

Ken Williams

I have a web page with a file upload form.

Does IE still report "application/vnd.ms-excel" for excel files
(file.xls) even if excel has not been installed on the computer yet? Or
does it get reported as application/octet-stream or whatever.

Thanks
 
N

Neredbojias

I have a web page with a file upload form.

Does IE still report "application/vnd.ms-excel" for excel files
(file.xls) even if excel has not been installed on the computer yet? Or
does it get reported as application/octet-stream or whatever.

By default - I don't know, but you can easily change it in "folder
options".
 
J

Jim Higson

Ken said:
I have a web page with a file upload form.

Does IE still report "application/vnd.ms-excel" for excel files
(file.xls) even if excel has not been installed on the computer yet? Or
does it get reported as application/octet-stream or whatever.

You probably shouldn't trust the MIME type the server sends for security
reasons anyway. The mimemagic module in Apache can be used to get the type
by looking at the contents of the file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top