搜尋 Mozilla 技術支援網站

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

Learn More

PDFs: Preview in Firefox is selected but STILL downloads to my PC

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

more options

I, like others who have posted similar questions, have been driven mad that PDFs are downloading to my PC when in the past, they just opened in a new window. I followed the troubleshooting steps posted in this community to ensure that "Preview in Firefox" appears as a drop-down (it did not originally) and that it was selected. (Steps involved getting a cleaned up version of mimeTypes.rdf and handlers.json.) Still, when I click on a the link I was testing this with, it asks me "What should Firefox do with this file?" and if I manually select "Open with...Other...Firefox," it will open in Firefox but still download to my PC. Am I right that the user experience should always be that it automatically opens a new tab and displays the PDF there while NOT downloading to the user's PC? That being said, I tested another random PDF and it did what it was supposed to. I only tested these 2 after I did the fixes so I don't have a high sample size to say if it mostly works or mostly doesn't. There was no discernible difference between the two files: both of their extensions were "pdf," they both had kind of long filenames, and they both had ~100 pages in their files.

I would like to get away from downloading files I: 1) don't want to keep and 2) don't trust on my PC but want to read.

Thanks in advance!

I, like others who have posted similar questions, have been driven mad that PDFs are downloading to my PC when in the past, they just opened in a new window. I followed the troubleshooting steps posted in this community to ensure that "Preview in Firefox" appears as a drop-down (it did not originally) and that it was selected. (Steps involved getting a cleaned up version of mimeTypes.rdf and handlers.json.) Still, when I click on a the link I was testing this with, it asks me "What should Firefox do with this file?" and if I manually select "Open with...Other...Firefox," it will open in Firefox but still download to my PC. Am I right that the user experience should always be that it automatically opens a new tab and displays the PDF there while NOT downloading to the user's PC? That being said, I tested another random PDF and it did what it was supposed to. I only tested these 2 after I did the fixes so I don't have a high sample size to say if it mostly works or mostly doesn't. There was no discernible difference between the two files: both of their extensions were "pdf," they both had kind of long filenames, and they both had ~100 pages in their files. I would like to get away from downloading files I: 1) don't want to keep and 2) don't trust on my PC but want to read. Thanks in advance!

所有回覆 (5)

more options

Whether you are saving or viewing a file, it still needs to be downloaded. It either goes to your download folder, or to temporary storage.

more options

How would Firefox be able to show the PDF file if it isn't downloaded from the server ?

Firefox still needs to download the file to the memory cache or to the disk cache when you use preview in Firefox. If you would open the file in a external application then the file is saved to the OS temp folder.

more options

Well, as I noted, it did not permanently download to a folder for one of the tests/pdfs. I want that to be the consistent experience. Is there a way to make that happen? Thank you.

由 ldpmail 於 修改

more options

ldpmail said

I want that to be the consistent experience. Is there a way to make that happen?

Not really. Server says, what to do with this file. You can compare these files on this page: https://gf.dev/mime-sniffing-test

Only files with Content-Type == "application/pdf" can be opened in a browser. PDF files with different Content-Type will be downloaded.

more options

There is this extension that can be used in cases the content type isn't "application/pdf". Content-Type Fixer https://addons.mozilla.org/firefox/addon/content-type-fixer/