Posted by Jim Higson on 04/17/06 13:39
Ken Williams wrote:
> 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.
[Back to original message]
|