Open pandronic opened 7 years ago
I won't be able to support this until https://bugzilla.mozilla.org/show_bug.cgi?id=1245652 is implemented.
Rob--W found a solution without waiting for API implementation content-disposition.js
@MichelePezza That just parses the header to get the filename. Web extensions doesn't even give me the header.
take a look Save in web extension an look for "// Chrome: Skip HEAD request for Content-Disposition and use onDeterminingFilename" in the text....
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:
* 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).