Automatic Downloads

This tutorial will demonstrate how to force a web browser to always save a file rather than view it.

To make your files download automatically, place them in a directory with a .htaccess file containing the following:

AddType application/octet-stream FileExtension

Replace where it says "FileExtension" with extention of the kind of file you'd like be downloaded automatically. You can create a new line for each type of file. For instance if you'd like all the .gif files and .jpg files to automatically download, then your .htaccess file would have the following two lines in it:

AddType application/octet-stream gif
AddType application/octet-stream jpg


Hurricane Electric
760 Mission Court
Fremont, CA 94539
FAQ Index   --   Tutorial Index
Copyright © 1994 - 2008 Hurricane Electric.
All Rights Reserved.
Voice +1.510.580.4100
Fax +1.510.580.4151
Comments? info@he.net