- This topic has 1 reply, 1 voice, and was last updated 6 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Download Monitor & Manager Plugin
Simple Download Monitor & Manager for WordPress
· ·
WordPress Download Monitor Plugin › Forums › Download Monitor Plugin Forum › forbid browser to display a PDF file download
Tagged: download pdf not diplay it
I’m using un button (not the sdm_download button feature but a theme Avada button) using that link:
?smd_process_download=1&download_id=xxxxx
All browsers are displaying the PDF instead of the download box. Is there a way to force the browser to not open the file?
Thanks for any help
Solution found:
put an .htaccess file inside the folder containing the pdf to be downloaded using sdm_download plugin. Files offered to download must be in their own specific folder.
Content of the .htaccess is:
<FilesMatch “\.pdf$”>
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
works like a charm!
Start managing and tracking your file downloads with the simple download monitor plugin. Download Now