為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

How to disable that Firefox automatically saves PDFs?

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

more options

I have the following settings in Settings/Preferences>General:

Files and Applications

Downloads Save all files in the following folder: Downloads Ticked Ask every time where to save a file

Applications Portable Document Format (PDF): Open in Firefox How should Firefox deal with other files? Ticked Ask whether to open or save files

On specific websites when I click on a pdf link, Firefox opens and automatically saves the file to Downloads folder without asking whether to save and where to save despite the above settings. As far as I remember, on other websites when clicking a pdf link Firefox only opens the corresponding file and doesn't save.

I found this with a internet search https://connect.mozilla.org/t5/discussions/stop-saving-pdfs-to-downloads-when-viewing-in-firefox/td-p/10225.

How can it be disabled that Firefox automatically saves PDFs?

I have the following settings in Settings/Preferences>General: Files and Applications Downloads Save all files in the following folder: '''Downloads''' '''Ticked''' Ask every time where to save a file Applications Portable Document Format (PDF): '''Open in Firefox''' How should Firefox deal with other files? '''Ticked''' Ask whether to open or save files On '''specific websites''' when I click on a pdf link, Firefox opens and automatically saves the file to Downloads folder without asking whether to save and where to save despite the above settings. As far as I remember, on other websites when clicking a pdf link Firefox only opens the corresponding file and doesn't save. I found this with a internet search https://connect.mozilla.org/t5/discussions/stop-saving-pdfs-to-downloads-when-viewing-in-firefox/td-p/10225. How can it be disabled that Firefox automatically saves PDFs?

由 bernd1-1 於 修改

被選擇的解決方法

Firefox always needs to download and save the file to be able to display the file in a tab.

You can set browser.download.start_downloads_in_tmp_dir => true on the about:config page to make Firefox use the OS temp folder for downloading and opening files.

You can open the about:config page via the location/address bar. On the warning page, click "Accept the Risk and Continue" to open about:config.

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

所有回覆 (5)

more options

Change browser.download.open_pdf_attachments_inline to true in about:config.

more options

How does the server sends those PDF files if you check this in the in the Network Monitor?

more options

@cor-el Here are 3 screenshots of the Network Monitor regarding an example of a pdf that was (unfortunately) automatically saved.

由 bernd1-1 於 修改

more options

Hello

Other information What information is stored in my profile? https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_what-information-is-stored-in-my-profile Download actions: handlers.json This file stores your preferences that tell Firefox what to do when it comes across a particular type of file. For example, these are the settings that tell Firefox to open a PDF file with Acrobat Reader when you click on it. For more information, see Manage file types and download actions in Firefox.

Try

Go to your profile https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile Open Folder Then shut down Firefox Then, in your profile, delete the file handlers.json or rename the file (for example) handlers.json-old Next, start Firefox

Then Perform your checks https://support.mozilla.org/en-US/kb/change-firefox-behavior-when-open-file

handlers.json will be recreated automatically For information purposes You can view the contents of the file handlers.json (e.g. with Notepad)

more options

選擇的解決方法

Firefox always needs to download and save the file to be able to display the file in a tab.

You can set browser.download.start_downloads_in_tmp_dir => true on the about:config page to make Firefox use the OS temp folder for downloading and opening files.

You can open the about:config page via the location/address bar. On the warning page, click "Accept the Risk and Continue" to open about:config.