搜尋 Mozilla 技術支援網站

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

Learn More

Problem opening some jpgs in new window -- will only allow Save File

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

more options

This is looking more like a website issue rather than browser problem, but can you tell me whether there might be a Firefox setting that is affecting this behavior? When shopping for yarns online, I often open various color images in separate windows to see which look better together. I've come across a page that won't allow me to do that for many of the images -- instead, the message pops up: > You have chosen to open: > [filename].zoom.1.jpg > which is: Binary File > from: http://cdno1.yarn.com > would you like to save this file? > Cancel / Save File The page is http://www.yarn.com/webs-anniversary-sale-weaving-yarns/webs-weaving-yarns-valley-yarns-rayon-chenille/. To incur the error, I hit ctrl + enter while the cursor is on the hourglass image and then select either Open Link in New Tab (or New Window). Copying the image link and entering it into the URL bar also brings up the same error message for the affected items. I added "yarn.com" and "cdno1.yarn.com" to my list of exceptions to the popup blocker, but that didn't make a difference, nor did opening Firefox in Safe Mode.

I've recently had to erase and reinstall my laptop OS, so I've lost my preferred settings for Firefox and I'm trying to sort out and fix any unexpected behaviors. I'm currently using Mac OS X 10.6.8 and the latest version of Firefox. (I can't seem to access that information in Safe Mode, but 38.0 sounds about right.)

Any help is appreciated.

被選擇的解決方法

The server sends the files as Content-Type: application/octet-stream That will cause Firefox to present the download dialog.

You can look at this extension:

As an alternative you can use a keyword (e.g. img) bookmarklet like this:

data:text/html,<img%20src='%S'>

You can invoke the bookmarklet via the location/address bar:

img http://cdn01.yarn.com/resources/Yarn/images/products/processed/1331.GRAYBLUE.zoom.1.jpg
從原來的回覆中察看解決方案 👍 0

所有回覆 (12)

more options

I should mention that I'm running Windows...

What if you click the photo to show it in a larger viewer (within the page), then call up the context menu for the photo (right-click or Ctrl+click), then Command+click the View Image item on the menu. That should direct the image file to a new tab.

Does that work for you, or same error?

more options

I noticed in my case the images were loading from cdn03.yarn.com, so maybe one of their servers is buggy?

more options

I tried clicking on the looking glass to enlarge it, then did the ctrl +enter and the menu that pops up is to View Image, Copy Image, Copy Image Location, etc. That's the only menu I could get by clicking on any of the keys.  :(

I've had images from both cdn01 and cdn02. Some images load for me from cdn01 and some don't.

Technically, if the image loads *inside* the window as a popup, then shouldn't the image also load if it's kicked into a new tab or window? (Sorry, last time I worked with html was when it was hand coded.)  ;-)

So, did it work for you jscher2000? Did the images load in new tabs or windows or did you get the cancel/save file option?

more options

I got the images in new tabs using Ctrl+View Image (on Mac, it's Command+View Image). It is puzzling why you would get different results. I think Firefox should be grabbing it from cache.

more options

Oh! Ok...I did the Command+View Image (after 7 years, I'm still not a Mac person), and I still get the error message. Tomorrow I'll call them and ask if their techie isn't already off on holiday. A few of the images that don't work for me are cdn01.yarn.com/resources/Yarn/images/products/processed/1331.GRAYBLUE.zoom.1.jpg cdn01.yarn.com/resources/Yarn/images/products/processed/1331.SHALE.zoom.1.jpg cdn02.yarn.com/resources/Yarn/images/products/processed/1331.NATURAL.zoom.1.jpg

more options

選擇的解決方法

The server sends the files as Content-Type: application/octet-stream That will cause Firefox to present the download dialog.

You can look at this extension:

As an alternative you can use a keyword (e.g. img) bookmarklet like this:

data:text/html,<img%20src='%S'>

You can invoke the bookmarklet via the location/address bar:

img http://cdn01.yarn.com/resources/Yarn/images/products/processed/1331.GRAYBLUE.zoom.1.jpg

由 cor-el 於 修改

more options

Okay, my bad, I didn't try the other colors. Sienna and Light Grey (http://cdn02.yarn.com/resources/Yarn/.../RAYON1450DISC.LTGREY.zoom.1.jpg) are served as image/jpeg and work normally, but most others seem to be sent as the wrong content-type. For no apparent reason.

more options

BTW, they all open correctly in Safari Version 5.1.10.

more options

Clicking the zoom button on the image (bottom left corner) to get the zoomed image works for me.

Does clicking that button also give you an open with dialog?


You can try these steps in case of issues with web pages:

You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

Clear the cache and remove cookies only from websites that cause problems.

"Clear the Cache":

  • Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"

"Remove Cookies" from sites causing problems:

  • Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

Start Firefox in Safe Mode to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.

  • Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
  • Do NOT click the Reset button on the Safe Mode start window
more options

cor-el -- I downloaded Open in Browser. It works, and it looks like it will be useful in other circumstances as well. Thanks!  :) As for bookmarklets, I'd never heard of them, but they sound really handy, especially the Readability ones. And jscher2000, I'm sorry I wasn't clearer at the beginning and wasted your time -- I should have listed specific files at the start. Thanks for your assistance, too.  :) So, to recap in simple terms, what's going on (label mismatch) is an error at the site of origin, not a problem with the browser, and now I know two workarounds. Very good! Again, thank you!

more options

Clicking the zoom button (the looking glass/magnifying glass) brings the image up fine when it's embedded within that page, but to see multiple images at the same time (to determine which colors look better side by side), I need to open them into separate windows and line them up.

To get a dialogue, I must do a ctrl+enter, which brings up the "Open Link in New Tab", etc. list (no "Open With" appears in the list). It's when I select open in a new tab/window that I encounter trouble on certain files. The first item, http://cdn01.yarn.com/resources/Yarn/images/products/processed/RAYON1450DISC.POMPEII.zoom.1.jpg, opens to a new tab/window with no problem; the other ones I listed earlier... bring up the Save File window.

Not sure if you wanted me to try all your suggestions, but I tried "Hold down the Shift key and left-click the Reload button" as well as "Press "Command + Shift + R" (Mac)"; it made no difference. I also tried opening Firefox in Safe Mode because NoScript and AdBlock sometimes does some odd things, but no difference. And I checked for cookies, and there were none from WEBS. I didn't try clearing the cache at this time. I forget whether it's clearing the cache or deleting cookies that can wipe out any items that you might have stored in a shopping basket.

cor-el said

Clicking the zoom button on the image (bottom left corner) to get the zoomed image works for me. Does clicking that button also give you an open with dialog?

You can try these steps in case of issues with web pages: [snip]

more options

This is a problem with the server configuration that sends some files as "application/octet-stream". This content type will always cause a browser t download the file (Google Chrome behaves the same). In Firefox you have extension like open in browser and others to deal with such a HTTP response header.