搜尋 Mozilla 技術支援網站

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

了解更多

Extensions are changed on download

  • 8 回覆
  • 0 有這個問題
  • 344 次檢視
  • 最近回覆由 feklee

more options

I realize that if a file is served with mime type Content-Type: application/pgp-encrypted, then its extension is changed by Firefox on Android to ".pgp". Apparently, Firefox for Android likes to modify extensions based on mime type.

Can this behavior be disabled?

I realize that if a file is served with mime type ''Content-Type: application/pgp-encrypted'', then its extension is changed by Firefox on Android to ".pgp". Apparently, Firefox for Android likes to modify extensions based on mime type. ''Can this behavior be disabled?''

所有回覆 (8)

more options

Unfortunately, no. Firefox for desktop does the same.

more options

Thanks! I was hoping that there is an option in about:config.

The problem at hand is that .pgp somehow are not opened by OpenKeychain upon download, whereas .gpg files are.

Otherwise, Firefox on Android is attractive, especially the built-in PDF viewer. I hope this issue will be fixed.

more options

What is the rationale? Make sure that file extensions match mime type? (security)

In the meantime, I am trying to figure out if it is possible to have OpenKeychain show up as handler for .pgp files.

more options

Thanks! I would just like to understand the rationale.

I don't even mind so much the change of the extension. What I do mind is that OpenKeychain is not listed as an option to decrypt .pgp files. With ".gpg" files, that issue does not exist.

more options

Submit this at bugzilla.mozilla.org

more options

Thanks! But, as far as I understand it, it's not a bug. It seems to be intentional.

more options

Sorry if that didn't fix your issue. Do you want me to try asking someone that works on Firefox about this?

more options

Thanks, Khalid, but this seems by design. Of course, if a Firefox dev could clarify, this would be great.

The issue only happens with Content-Type: application/pgp-encrypted

I see it with filebrowser installed on my server. Interestingly their official demo server at demo.filebrowser.org does not show that issue (login: demo/demo). It serves files with Content-Type: application/octet-stream