Discussion Locked

Downloading Vs Auto Open files on Web

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
When setting up a website is it possible to force a user to download a file instead of having the file just automatically open? Some file types just automatically seem to open while others require you to download them first. If I have a number of PDF files that the clients will want to download rather than open in Acrobat immediately, can I force this to happen? As far as I can tell it doesn't have anything to do with the HTML tags or anything server side so I'm assuming it must be client side.Any thoughts?

3 replies

by peyison

You're right - this happens on the client side. If a PC has an application associated with the file (.pdf, .doc, .xls, etc) it will open the application to display the file. One way to get around this is to zip the file first. The browser will download the file instead of opening it (at least it will prompt to download or open).

Hope this helps.

This discussion is closed to new replies.