Knowledgebase
How do I force a file to be downloaded instead of displayed in the browser?
Posted by DMXReady Admin on 19 July 2004 08:01 PM

Q. How do I force a file to be downloaded instead of displayed in the browser?

A. Web browsers by default will automatically display any files they can. This is handy for displaying gifs, jpgs, etc. But sometimes you want visitors to download your files instead of just view them, like Microsoft Word, Excel, and even PDF files.

The easiest way is to contain them in a Zip file, which will automatically download. But if for whatever reason this is not the best solution for you, there are ways of adding ASP code to you pages to force download of the files instead of viewing.

For more information on how to do this, see these resources:

  1. http://www.xefteri.com/articles/show.cfm?id=7
  2. http://support.microsoft.com/kb/260519/EN-US/
(1621 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Help Desk Software by Kayako dmxready.helpserve.com