Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do you associate an action with a file type in Firefox 3.0 when the file is actually in xml format? A program that I use has its own file extension, but actually stores its data in XML format. What I want to be able to do is open these files from firefox and be allowed to associate them with the program that created them. However, instead of seeing a new file extension and asking me what to do with it, FF ignores the extension, automatically recognizes the content as XML, and just displays the XML.

share|improve this question
add comment

1 Answer

Firefox doesn't pay much attention to the extension, it looks for the mimetype that the webserver says the file is.

The webserver is probably saying the file is either application/xml or text/plain and so firefox will open the contents itself.

You could have the webserver use a nonstandard mimetype, then firefox would not know to open it, and would pass it to the OS or let you choose an action for it:

 Content-type: application/x-myapp
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.