Posted By

jrobinsonc on 01/13/10


Tagged

htaccess


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jackkeller


Force a file to download with a “Save As” prompt


 / Published in: Apache
 

If you want to force someone to download a file instead of opening it in their browser, use this code.

  1. AddType application/octet-stream .doc .mov .avi .pdf .xls .mp4

Report this snippet  

You need to login to post a comment.