When uploading a PDF file from an HTML form, the mime-type Firefox (WinXP) provides in the request header is:
Content-Type: /home/www/vesta/services/stamper/data/e5456e0699badbe373740d28eca79d09:
I’ve seen plenty of application/pdf and application/download, but never anything like this.
[BTW, I understand that trusting the file extension and the mime-type reported by the browser is unreliable, since it all comes from the client-side. Of course, server-side introspection methods are more reliable. But I’m still interested in this unusual browser behavior.]
Anybody ever seen something like this? Many thanks in advance.
See this Ubuntu bug report and Mozilla bug #373621.
For some reason, Firefox has been convinced (via
mimeTypes.rdf) that PDF files have a different MIME type. Delete the offending entry from yourmimeTypes.rdffile (in your profile directory).