搜尋 Mozilla 技術支援網站

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

了解更多

Firefox wrongly opens as pdf a ".pdf.sig" file (double extension)

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

more options

I was trying to download a PGP signature for a .pdf file "filename.pdf.sig" but Firefox kept trying to open it and render it as PDF instead of downloading it. Under Settings > Applications there's nothing for the ".sig" extension.

I was trying to download a PGP signature for a .pdf file "filename.pdf.sig" but Firefox kept trying to open it and render it as PDF instead of downloading it. Under Settings > Applications there's nothing for the ".sig" extension.

所有回覆 (2)

more options

If you provide the link or a similar one because you may not want to share it, we have more info. Chances are the website does not use the proper MIME type that Firefox relies on, unlike other browsers (that may be more susceptible to any tricks because of this.

Additionally, you could quickly set up another profile to see what happens there, or have a look at the Applications panel - Set how Firefox handles different types of files and Manage file types and download actions in Firefox support articles. Look at the section that describes to remove the handlers.json file to reset the defaults in case that file is damaged. Then again, a new (test) profile will quickly indicate whether or not the issue is related to the website, or perhaps even your Linux distribution, its settings or additional (pgp) software?

more options

Added

AddType application/octet-stream .sig AddType application/octet-stream .pdf.sig

to my .htaccess and the issue seems resolved. Not sure if FF still needs fixing though.

由 parasp 於 修改