Return to Snippet

Revision: 47193
at June 2, 2011 05:58 by manuelpedrera


Initial Code
<Files *.xls>
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</Files>
<Files *.eps>
  ForceType application/octet-stream
  Header set Content-Disposition attachment
</Files>

Initial URL

                                

Initial Description
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.

Initial Title
Force filetype download

Initial Tags
download

Initial Language
Apache