Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
Thread: using FilesMatch
08-26-2013, 02:14 AM #1
One of my clients had a bunch of pdf files (100's) and they do not want to zip each one of them in order to build a download page
At first i suggested they they try to find a multiple file zipper or i could write one in php but then we still have to build the page and all the links
so this was a better option for now, but i have never seen this before.
<FilesMatch "\.(?i:pdf)$"> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch>
Is this the right way to use that, is the coding correct and safe to use, did we do it right?
08-30-2013, 03:41 PM #2
- Join Date
- Mar 2007
- Florida, USA
- Thanked 406 Times in 398 Posts
Yes, that's perfectly valid to force a download.
Users who have thanked Inigoesdr for this post:
08-30-2013, 03:46 PM #3