Skip the download dialogue using .htaccess

Submitted by:Tim Kelly

Date added:29 August, 2012

Category:Apache

Usually when you try to download something from a web server you get a request asking whether you want to save the file or open it. To avoid that you can use the below code on your .htaccess file

Tags: skip download dialogue

Code Snippet:

AddType application/octet-stream .pdf
AddType application/octet-stream .zip
AddType application/octet-stream .mov
 
 

Comments