為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Firefox cannot download .msi files as binaries to Downloads folder

  • 5 回覆
  • 0 有這個問題
  • 98 次檢視
  • 最近回覆由 Bordonbert

more options

Hi. I'm trying to download an installer .msi file from a valid link. If I do this in Chrome it simply pops it into the Downloads folder as it should. In Firefox, it downloads and then displays as a text page of garbage. It seems the file is wrongly defined as text/plain on the server rather than as a binary.

However, I've looked into my Firefox settings to see if I can define the handling behaviour of that file type. I can't! Amazingly to me, the .msi file type can not be added to the list manually. There is no "Add File Type" functionality in there. It seems as though I have to handle the file in Firefox for it to see that that type exists and then it will let me add it to the Downloads/Applications area of settings.

I can right click on the link and choose Save File As which gets round it, but then I still cannot see the .msi file type to add it to the Applications list. Can anyone tell me what I am missing here?

Hi. I'm trying to download an installer .msi file from a valid link. If I do this in Chrome it simply pops it into the Downloads folder as it should. In Firefox, it downloads and then displays as a text page of garbage. It seems the file is wrongly defined as text/plain on the server rather than as a binary. However, I've looked into my Firefox settings to see if I can define the handling behaviour of that file type. I can't! Amazingly to me, the .msi file type can not be added to the list manually. There is no "Add File Type" functionality in there. It seems as though I have to handle the file in Firefox for it to see that that type exists and then it will let me add it to the Downloads/Applications area of settings. I can right click on the link and choose Save File As which gets round it, but then I still cannot see the .msi file type to add it to the Applications list. Can anyone tell me what I am missing here?

被選擇的解決方法

It won't work that way. You can only use this extension to workaround it.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

more options

A server issue. Server sends this file with wrong mime type. It is "text/plain" and it should be sth like "application/octet-stream".

Chr*me doesn't pay attention on the mime type, it downloads whatever it is.

more options

Thanks for confirming that TyDraniu. That is what I imagined was causing it. But it still doesn't explain why I can't get Firefox to handle the .msi type as it does others in its Settings\General\Files and Applications\Applications handling list.

Surely I should be able to manually add any file type and define the handling for that extension. Sure, once it is in the "Content Type" list and is recognised I can then define the "Handling" alongside. However Firefox remains blissfully unaware of the .msi file type until it has already handled it. That behaviour seems odd to me.

I'm going to have to find a "well defined as binary" .msi file, download that, and then see if it appears in the recognised list to be able to then edit the handling procedure.

more options

選擇的解決方法

It won't work that way. You can only use this extension to workaround it.

more options

Thanks for the heads up and the link. I'll add that and see if it sorts it out for me. Your replies and advice are much appreciated.

more options

Just an update.

I now have the Content-Type Fixer add on installed. I attempted to download the same .msi file again but Firefox still failed. However, that gave me the opportunity to go into the add on Add/Edit Content Type area where the download showed up in the log. It clearly showed the file was defined as text/htmI. I could then redefine the download type as "application/octet-stream". Another attempt at downloading and whaddya know? It now sits in my Downloads folder.

Thanks Tydraniu.