为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Firefox cannot download .msi files as binaries to Downloads folder

  • 5 个回答
  • 0 人有此问题
  • 1 次查看
  • 最后回复者为 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.