Force download with .htaccess


/ Published in: Bash
Save to your folder(s)

For expression engine, I placed with with the main set of .htaccess rules in the root


Copy this code and paste it in your HTML
  1. <Files *.png>
  2. ForceType application/octet-stream
  3. Header set Content-Disposition attachment
  4. </ Files>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.