Force Files to Download (Not Open in Browser)


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



Copy this code and paste it in your HTML
  1. AddType application/octet-stream .csv AddType application/octet-stream .xls AddType application/octet-stream .doc AddType application/octet-stream .avi AddType application/octet-stream .mpg AddType application/octet-stream .mov AddType application/octet-stream .pdf

URL: http://css-tricks.com/snippets/htaccess/force-files-to-download-not-open-in-browser/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.