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

搜尋 Mozilla 技術支援網站

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

了解更多

Downloading a file, mime type application/octet-stream, I always get the dialog "would you like to save to save this file? Cancel or Save".

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

more options

A number of us are using a private site where we run an application offline. The application offers a download button so that we can take a snapshot of our offline progress, a sort of backup. When we go back on-line we can either upload the the information from the application or we can upload the backup files.

The problem is that whenever we hit the download button we always get the extra dialog asking if we want to save or cancel the file download. This might sound a little ridiculous, but we really do not want to have to move the mouse to the new dialog and have to click the Save button.

The file mime type is application/octet-stream, there is no file extension.

Is there a way to change the Firefox configuration so that this dialog does not appear?

Thank you.

Apologies, but I have deleted all of the system information gathered automatically because I am not able to submit this request from the machines where the problem occurs.

Those system are: Ubuntu 14:04.3 LTS Firefox 40.0.3

A number of us are using a private site where we run an application offline. The application offers a download button so that we can take a snapshot of our offline progress, a sort of backup. When we go back on-line we can either upload the the information from the application or we can upload the backup files. The problem is that whenever we hit the download button we always get the extra dialog asking if we want to save or cancel the file download. This might sound a little ridiculous, but we really do not want to have to move the mouse to the new dialog and have to click the Save button. The file mime type is application/octet-stream, there is no file extension. Is there a way to change the Firefox configuration so that this dialog does not appear? Thank you. Apologies, but I have deleted all of the system information gathered automatically because I am not able to submit this request from the machines where the problem occurs. Those system are: Ubuntu 14:04.3 LTS Firefox 40.0.3

被選擇的解決方法

Content type "application/octet-stream" will always cause Firefox to show the "open with" download dialog. To avoid this download you would have to configure the server to send another content type and possibly change the file extension of the file.


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

所有回覆 (2)

more options

選擇的解決方法

Content type "application/octet-stream" will always cause Firefox to show the "open with" download dialog. To avoid this download you would have to configure the server to send another content type and possibly change the file extension of the file.


more options

@Cor-el, yes, that was spot on. I have mocked up your suggestion using a mime type of "application/json" and a file extension of ".json" and we get the correct behaviour. Thank you.