Click to See Complete Forum and Search --> : How can I download a file.doc?
Hello!
I'm a beginer in HTML and I have the next situation.
I have made the following link: <a href="file.doc">Download</a>.
When I pressit I want to show me a box to Open or Save the file?
How can I do that?
It should do that by default unless you changed your browser settings to automatically open (or save) a .doc file.
NogDog
11-23-2006, 09:28 PM
If you're on a webserver running Apache, there are settings you can specify in a .htaccess file to "tell" the browser it's sending a file download, but my experience is that IE sometimes ignores those if it thinks it's a document type it knows and has been configured to use an application for that type of file. The most reliable solution I've found is to create a PHP servelet to download the file (and something similar could be done in other server-side languages, too).
If either of those options are something you want to pursue further, let us know and we can post more info or point you to a relevant thread here.