Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Download of pdf attachments

  • 9 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Sparrox

more options

Hello,

I'm using Firefox 102.0 (64-bit) on Win 10. When I click on the download icon of email attachments or Whatsapp files, firefox opens the pdf files in a new tab instead of downloading them. All other file formats are downloaded correctly instead. How can I correct this problem, please?

Best regards, Giovanni

Hello, I'm using Firefox 102.0 (64-bit) on Win 10. When I click on the download icon of email attachments or Whatsapp files, firefox opens the pdf files in a new tab instead of downloading them. All other file formats are downloaded correctly instead. How can I correct this problem, please? Best regards, Giovanni

由Sparrox于修改

所有回复 (9)

more options

Hi giovannis87, Try changing the action for PDF files in your Settings -> General -> Applications from Open in Firefox to Save File

How file downloads are handled in Firefox version 98 and above https://support.mozilla.org/en-US/kb/manage-downloads-preferences-using-downloads-menu

more options

RobertJ said

Hi giovannis87, Try changing the action for PDF files in your Settings -> General -> Applications from Open in Firefox to Save File How file downloads are handled in Firefox version 98 and above https://support.mozilla.org/en-US/kb/manage-downloads-preferences-using-downloads-menu

Dear Robert,

Thanks for your time. Your suggestion would make sense if I wanted to click on a pdf file either to open or save it, but my problem is with an action button to directly download a pdf file.

I want to keep the "open in firefox" as a default action any time I click on a pdf file on the web to read it, and at the same time I want to be able to directly download when I click on the "download" button of email attachments. Is it possible by any chance? I have firefox 91.10.0esr (64-bit) on another Win10 computer, and it works well there, but not with the new version of firefox. I wouldn't like to use the "always ask" option, as it adds an additional step.

Regards, Giovanni

由Sparrox于修改

more options

In version 91 the PDF file should be downloaded to \TEMP folder and also opened in Firefox.

more options

Hi Giovanni, in Firefox 98+, when the user has the default setting of "Open in Firefox", the browser tries to open all the PDFs. It ignores instructions from the server that a PDF is for download only (Content-Disposition: attachment). For a while, sites were able to fool Firefox by disguising the file as not-a-PDF (for example, setting the Content-Type: application/force-download). However, in Firefox 102 that might not be working any more, either.

more options

In v102 - When I "open in Firefox" the file is downloaded to \Cache2

more options

Hi Robert, it depends on whether the server honestly identifies the file as a PDF or not in the Content-Type:

Honest: https://www.jeffersonscher.com/res/servepdf.php?f=bugzilla-home.pdf&ct=application/pdf

Lying: https://www.jeffersonscher.com/res/servepdf.php?f=bugzilla-home.pdf&ct=download/only

more options

@jscher Good to know info. Thank you.

more options

Dear Robert and Jefferson,

Thanks again for your contributions and explanations.

From my understanding, there is no way to go back to the old behaviour then. Nowadays, pdfs attached to emails generally have three action items: preview, save to online drive, and download. If I choose the download option is because I do want to download the file, so I don't understand why Firefox has decided that this no longer has to happen, but I'll live with it.

more options

It's being harder than expected to live with the "Always ask" option! Now, every time I choose "Open with Firefox" from the "what should firefox do with this file?" pop-up window, any pdf is opened AND downloaded. Why??? Now I have to manually delete these unwanted, saved pdf files from the Download folder!! I'm going crazy...

Better if I'll keep the "Open in Firefox" option in the general settings then, so any pdf will be simply opened and not downloaded. If I want to download a pdf, I'll just do it manually from the opened file, which is less time consuming than deleting every unwanted pdf from the Downloads.