/ Published in: Apache
When offering some files such as mp3s, eps or xls, for download on your site, you may force download instead of letting the browser decide what to do.
This snippet will force the download of .xls and .eps files from your server.
This snippet will force the download of .xls and .eps files from your server.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<Files *.xls> ForceType application/octet-stream Header set Content-Disposition attachment </Files> <Files *.eps> ForceType application/octet-stream Header set Content-Disposition attachment </Files>