Open Bug 1151855 Opened 10 years ago Updated 2 years ago

can't specify to save when Content-Disposition: attachment and preview otherwise

Categories

(Firefox :: File Handling, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: AdrianATaylor, Unassigned)

Details

In the case of Portable Document Format (PDF), Firefox has the ability to "preview" in the browser. Firefox can also save a PDF or open the PDF in another application. My preference is to "save" the PDF when the server hints that the file should be downloaded (by specifying Content-Disposition: attachment), and "preview" it if the server does not hint that it should be downloaded. Unfortunately, if I set Firefox to "preview", I'm asked whether to open or save in cases where Content-Disposition: attachment is specified (whereas I want to always save in this case). On the other hand, if I set Firefox to "save", it will always save and never preview, regardless of whether Content-Disposition: attachment is specified. There should be a way to distinguish between the handling of files depending upon the server hint for whether it should be downloaded.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.