ma.gnolia

Sign In | Learn More

Skip to main content


Aaron Johnson  » Blog Archive   » Firefox mimeTypes.rdf corruptio Aaron Johnson » Blog Archive » Firefox mimeTypes.rdf corruptio

  • Not rated yet.
  • Copy Bookmark

Firefox mimeTypes.rdf corruption Came across another interesting bug today involving Firefox and mime types. Firefox uses a file called mimeTypes.rdf (stored in your profile folder) to keep track of a) what application should be opening the file you’re downloading and b) what kind of file it should tell a server it’s sending when you upload a file. And it works … for the most part. See, if you download a PDF file from a server that (incorrectly) states that the content-type of the file is ‘application/unknown’, choose to open it using Adobe Acrobat and then check the box that says ‘Do this automatically from now on’, Firefox will store that bit of knowledge away in mimeTypes.rdf. Now go and use a web application that you upload files to and which analyzes the content-type of the files you’re uploading and upload a PDF file. If you’re using LiveHTTPHeaders, you’ll notice that you’re not sending ‘application/pdf’ but instead ‘application/x-download’.

Nobody else in Ma.gnolia has this bookmark.