搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How do I add a new file type to Edit /Preferences / Applications?

  • 2 回覆
  • 44 有這個問題
  • 1 次檢視
  • 最近回覆由 ahorn

more options

I am using Firefox 3.6.12 on Linux. When I try to download an .XLSB attachment from Gmail, Firefox tells me that this is a BIN file and my only option is to Download. It does not give me any ability to choose an application.

I would like to associate the extension or MIME type with OpenOffice, which can in fact open this file successfully once downloaded. How do I do this? Edit / Preferences / Applications does not list XLSB or BIN or anything else that seems useful. And there seems no way to add a new filetype.

Clicking Help in that dialog box takes me to http://support.mozilla.com/en-US/kb/Options+window+-+Applications+panel?style_mode=inproduct&as=u which does not give any useful advice on how to add a new filetype (nor does it even say that it is impossible or requires hacking a MIME configuration file or something).

I am using Firefox 3.6.12 on Linux. When I try to download an .XLSB attachment from Gmail, Firefox tells me that this is a BIN file and my only option is to Download. It does not give me any ability to choose an application. I would like to associate the extension or MIME type with OpenOffice, which can in fact open this file successfully once downloaded. How do I do this? Edit / Preferences / Applications does not list XLSB or BIN or anything else that seems useful. And there seems no way to add a new filetype. Clicking Help in that dialog box takes me to http://support.mozilla.com/en-US/kb/Options+window+-+Applications+panel?style_mode=inproduct&as=u which does not give any useful advice on how to add a new filetype (nor does it even say that it is impossible or requires hacking a MIME configuration file or something).

所有回覆 (2)

more options

With which MIME type does the server send the BIN files?

See "File handling in Firefox 3 and SeaMonkey 2": http://kb.mozillazine.org/File_types_and_download_actions

more options

The general question is how to get firefox to call a homemade script/program, when it "meets" a special mime-type (i.e. another file with a homemade extension). My firefox 5.0 can not "see" the local scripts on my MAC OSX (Snow leopard), although it is indeed executable (the script appears "grey" in the list). How can you force firefox to accept homemade scripts associated to homemade file-extensions/mime types?