Join the Mozilla’s Test Days event from 9–15 Jan to test the new Firefox address bar on Firefox Beta 135 and get a chance to win Mozilla swag vouchers! 🎁

搜尋 Mozilla 技術支援網站

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

了解更多

Opening an image without downloading it

  • 4 回覆
  • 1 有這個問題
  • 266 次檢視
  • 最近回覆由 cor-el

more options

Hello, Frequently when I left click a hyperlink to an image, Firefox will ask me where I would like it downloaded. However, my purpose for clicking that link was to simply open the image in a new tab. When I went to find the default option for opening an image, I was not given the choice to "preview in browser" (a choice you get for opening .pdf files, among other things). What am I doing wrong? I do not want to download image URLs that I click.

I found an extension that allows me to do this, but I cannot set the extension's behavior as the default. Essentially, whenever I have to open an image, I have to left click it then select the option to open it in a new tab. This is pretty unwieldy and awkward behavior, and I would really appreciate a work-around.

I have already ran Firefox in safe mode, but with no success.

Thank you for your time.

Hello, Frequently when I left click a hyperlink to an image, Firefox will ask me where I would like it downloaded. However, my purpose for clicking that link was to simply open the image in a new tab. When I went to find the default option for opening an image, I was not given the choice to "preview in browser" (a choice you get for opening .pdf files, among other things). What am I doing wrong? I do not want to download image URLs that I click. I found an extension that allows me to do this, but I cannot set the extension's behavior as the default. Essentially, whenever I have to open an image, I have to left click it then select the option to open it in a new tab. This is pretty unwieldy and awkward behavior, and I would really appreciate a work-around. I have already ran Firefox in safe mode, but with no success. Thank you for your time.

被選擇的解決方法

This is usually caused by the way the server sends the file. If the server sends the file as a recognized image type then Firefox will show the image in a tab. If the server sends the file a a generic content type or in another way that makes Firefox presenting an open with dialog then your only option is to use the "Open in Browser" extension or possibly a special bookmarklet.

You can use the Live Http Headers extension or possibly the Network monitor to check the HTTP response headers.

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

所有回覆 (4)

more options

hi silentbutkrazy, does the following addon help you achieve the behaviour you'd like to see? https://addons.mozilla.org/en-us/firefox/addon/inlinedisposition/

more options

Thank you for your reply, philipp. However, that does not help.

more options

can you provide a sample url where this is happening?

more options

選擇的解決方法

This is usually caused by the way the server sends the file. If the server sends the file as a recognized image type then Firefox will show the image in a tab. If the server sends the file a a generic content type or in another way that makes Firefox presenting an open with dialog then your only option is to use the "Open in Browser" extension or possibly a special bookmarklet.

You can use the Live Http Headers extension or possibly the Network monitor to check the HTTP response headers.