Force Firefox to Download PDF from Website
Is there any code that I can add to our website that will over-ride the browser configuration and force Firefox to download a PDF instead of opening it it?
Is there any code that I can add to our website that will over-ride the browser configuration and force Firefox to download a PDF instead of opening it it?
All Replies (1)
On the server side you can set the response header Content-Disposition: attachment for that type of files.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition