Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Unable to set action of opening image/jpeg in Firefox

  • 7 件の返信
  • 6 人がこの問題に困っています
  • 78 回表示
  • 最後の返信者: ifurkend

more options

I just want to open and view a jpg link in a firefox tab, but it instantly ask me if I want to save it or open it by other application. Fine. I go to Options - Applications to change the action of handling jpg. There are 2 kinds of jpeg, one is "JPEG Image (image/jpeg) and the other "JPEG Image (text/html). I can change the action of "text/html" to use Firefox as the default action, but for "image/jpeg", no matter how many times I tried, it just doesn't allow me to choose Firefox but other actions or applications. Precisely, I can choose Firefox in the "Select Helper Application", but after I clicked "OK", it reverted to the old action. I tried to restart Firefox and tried again, but no good at all. It frustrates me so bad.

I just want to open and view a jpg link in a firefox tab, but it instantly ask me if I want to save it or open it by other application. Fine. I go to Options - Applications to change the action of handling jpg. There are 2 kinds of jpeg, one is "JPEG Image (image/jpeg) and the other "JPEG Image (text/html). I can change the action of "text/html" to use Firefox as the default action, but for "image/jpeg", no matter how many times I tried, it just doesn't allow me to choose Firefox but other actions or applications. Precisely, I can choose Firefox in the "Select Helper Application", but after I clicked "OK", it reverted to the old action. I tried to restart Firefox and tried again, but no good at all. It frustrates me so bad.

選ばれた解決策

Are you sure that these images are send with a proper MIME type for images and not with a generic MIME type that makes Firefox show the "Open with" dialog?

You can look at this extension:

この回答をすべて読む 👍 0

すべての返信 (7)

more options

選ばれた解決策

Are you sure that these images are send with a proper MIME type for images and not with a generic MIME type that makes Firefox show the "Open with" dialog?

You can look at this extension:

more options

I don't understand what MIME type the image possesses. I need to point out that not all JPEG images have the same problem. For example, this can be opened in Firefox normally, but this just never yields.

more options

I fiddled around with Applications of "JPEG Image (image/jpeg)" and now the problematic jpg file is always opened in "Windows Picture and Fax" and ignores any other action I have chosen.

more options

That second image that gives a open with dialog is send as Content-Type: unknown/unknown and the first working image correctly as Content-Type: image/jpeg
So this is a problem with the configuration of the server and you would need the above mentioned extension to override this.


data:text/html,<img src='http://static2.wikia.nocookie.net/__cb20131209145630/megamitensei/images/6/61/Persona_4_the_ANIMATION_-_15_-_Large_30.jpg'>
more options

I installed the extension, but now Firefox always opens the JPEG in question in "Windows Picture and Fax Viewer" even if I've set "Always ask" in Applications. I think I've hit the bug of Firefox handling file of unknown MIME type.

more options

Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.

Note that the extension will allow to open this image file in a Firefox tab as that is the purpose of this extension.

more options

OK, finally solved, although not the way I have hoped. Undeniably it is a bug that should be fixed instead of relying on an extension.