搜索 | 用户支持

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

详细了解

clicking on msi link displays garbage rather than download msi file

  • 6 个回答
  • 1 人有此问题
  • 32 次查看
  • 最后回复者为 rkm

more options

Using Firefox 54.0.1 I'm trying to download an install file from a link e.g. <foo.msi> from which I have been able to download before. Now Instead of downloading the file to a folder Firefox gives me a screen full of text and symbols. <foo.msi> downloads properly with Chrome.

Using Firefox 54.0.1 I'm trying to download an install file from a link e.g. <foo.msi> from which I have been able to download before. Now Instead of downloading the file to a folder Firefox gives me a screen full of text and symbols. <foo.msi> downloads properly with Chrome.

被采纳的解决方案

Indeed the page info is shown as text/plain. The workaround works, except that Firefox appends an additional extension of .txt to the saved file. When this additional extension is removed via rename, the install file is available for installation.

Since I'm responsible for the offending foo,msi and have performed test downloads from time to time over the past few years, I'm puzzled that I have not seen this behavior before. Has there been some change in firefox over the past several years that has prevented it from correctly recognizing .msi files?

Or might there be something that the hosting service can do to pass the information to Firefox that this should be treated as a download?

Or something that can be added to the HTML so the link will be treated as something that should be downloaded?

定位到答案原位置 👍 0

所有回复 (6)

more options

Hello,

In order to better assist you with your issue please provide us with a screenshot. If you need help to create a screenshot, please see How do I create a screenshot of my problem?

Once you've done this, attach the saved screenshot file to your forum post by clicking the Browse... button below the Post your reply box. This will help us to visualize the problem.

Thank you!

more options

Usually the problem is that the server is not set up with a specific content-type for .msi so it sends a default content type such as text/html or text/plain that Firefox dutifully displays in a tab. If you right-click the gibberish and click View Page Info, you would see the Type information Firefox received there on the General panel of the Page Info dialog.

Unfortunately, there's no built-in way to tell Firefox "when you see a .msi extension, ignore the content-type indicated by the server and just save it."

As a workaround, can you right-click a link to the file and use Save Link As?

more options

选择的解决方案

Indeed the page info is shown as text/plain. The workaround works, except that Firefox appends an additional extension of .txt to the saved file. When this additional extension is removed via rename, the install file is available for installation.

Since I'm responsible for the offending foo,msi and have performed test downloads from time to time over the past few years, I'm puzzled that I have not seen this behavior before. Has there been some change in firefox over the past several years that has prevented it from correctly recognizing .msi files?

Or might there be something that the hosting service can do to pass the information to Firefox that this should be treated as a download?

Or something that can be added to the HTML so the link will be treated as something that should be downloaded?

more options

Here's a picture

由rkm于修改

more options

Do you want to remove that image and post one without the full URL?

I'm mostly familiar with Apache, but nginx may works similarly in how you associate file extensions with content types or MIME types. Perhaps you can do it through a control panel but, if not, you could edit a configuration file. I'm not sure why that configuration would have changed... stuff happens?

Anyway, I saw a recommendation to use one of these associations, the first being Microsoft's preference and the second being a generic way to indicate a binary file:

application/x-msi		msi
application/octet-stream	msi
more options

@jscher2000.

Many thanks. Problem solved. Hosting service made suggested changes at server.