Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content-Disposition header is not supported #7

Open
pandronic opened this issue Sep 20, 2017 · 4 comments
Open

Content-Disposition header is not supported #7

pandronic opened this issue Sep 20, 2017 · 4 comments

Comments

@pandronic
Copy link

So, my use case involves a PHP script (let's say invoices.php) that generates a PDF file based on some parameters. I use the following headers:

Content-Type: application/pdf
Content-Disposition: inline; filename="invoiceXXXX.pdf"

* where XXXX is a different number

Upon clicking, Firefox will open the link with the built-in PDF viewer, DownThemAll! will download the links with the corresponding names, DownloadStar will download them with the filename of the PHP script (invoices.php).

@marklieberman
Copy link
Owner

marklieberman commented Sep 20, 2017

I won't be able to support this until https://bugzilla.mozilla.org/show_bug.cgi?id=1245652 is implemented.

@marklieberman marklieberman changed the title Setting the filename directive in the Content-Disposition header doesn't work Content-Disposition header is not supported Jun 30, 2018
@MichelePezza
Copy link

Rob--W found a solution without waiting for API implementation content-disposition.js

@marklieberman
Copy link
Owner

@MichelePezza That just parses the header to get the filename. Web extensions doesn't even give me the header.

@MichelePezza
Copy link

take a look Save in web extension
an look for "// Chrome: Skip HEAD request for Content-Disposition and use onDeterminingFilename" in the text....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants