On trying to download a pdf file my Firefox downloads a file without file ending and means it would be an application/octet-stream file:Only after a manually add to the file the ending pdf i become able to open it with usual tools.The questions are:on which side is a problem? On my or on the administrator of the site, where i download the file?In both cases: what is exactly wrong?My guess was, the site administrator wanted to force users to download his pdf files, instead of open them in browser, with something like this setting:AddType application/octet-stream .pdfBut where the file ending is remains the dark secret for me.
PDF download fails because of...what?
transfer;pdf;download;file extension;assets
To get the .pdf extension on the file after download, it needs an HTTP header like:Content-Disposition: attachment; filename=some-file.pdf;With this header it will be saved as some-file.pdf even if served from the URL /pdf-download.phpSee on StackOverflow: How to Use Content-disposition for force a file to download to the hard drive?