MIME Types and Venkman
How do Mozilla get the MIME type of a uri?
For HTTP URIs, as well as for Mail Attachments, Mozilla usually gets a mime type sent from the server, and uses it. Contrary to IE, Mozilla will not sniff the type of the document, not even for application/octet-stream or text/plain documents. There is one exception: for images loaded via <img src>, Mozilla's image library will do content sniffing (never extension sniffing) to find out the real type of the image.
Read the article How Mozilla determines MIME Types
Unfortunately, a lot of people complain about files arriving as text/plain when they shouldn't be. And since Mozilla/Firebird doesn't correct it at all, an extension is needed. From what I've seen, the proper hooks don't exist to intercept well.Comment by alanjstr at August 29, 2003 04:50 PM | Permalink
I use ForceContentType which can do just that
Force all documents ending with .avi to be "video/avi"
Check it out:
For HTTP URIs, as well as for Mail Attachments, Mozilla usually gets a mime type sent from the server, and...TrackBack from How Mozilla determines MIME Types at September 2, 2003 01:11 AM | Permalink