Force a File to Download Instead of Showing Up in the Browser
-
I want to initiate the download of a file with the click of the SUBMIT.
I added the following code to the Additional Settings:
on_sent_ok: “location = ‘https://www.filename.pdf’;”I want to force the file to download, instead of showing in the browser and I am not able to resolve this. I added the following code to the htaccess file and nothing… it still opens the file with the pdf viewer:
<FilesMatch “\.(?i:pdf)$”>
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>I am 100% sure this has nothing to do with my desktop, since I am able to download pdf files from many sources without viewing them.
What am I missing here? Any ideas would be welcome!
Jerry
- The topic ‘Force a File to Download Instead of Showing Up in the Browser’ is closed to new replies.