Click to See Complete Forum and Search --> : Downloading Word Docs without any of the issues?


Yanhead
09-15-2003, 08:33 AM
I'm trying to create a link that will download a Word doc with one click, everytime I try it either trys to open the word doc in the browser window or opens it in Word. I want it to download.

I have found an example on the web of a 'single click' word doc download:

http://endoflifecare.tripod.com/hun...elogos/id6.html

when I click one of the downloadable files it does 'just' downloads the file without any of the above issues.

anyone know why this should be? in IE for example, at what point after installing your app does IE add its file types to the 'File Helper' list?

thanks in advance.

Khalid Ali
09-15-2003, 08:57 AM
easy solution will be to zip the file and then point towards it in your html link,it will prompt user for download

AdamGundry
09-15-2003, 10:29 AM
If you have PHP, this thread may be of help: http://forums.webdeveloper.com/showthread.php?s=&threadid=5581

Adam

Yanhead
09-16-2003, 05:51 PM
have a look at this example of a single click Word Doc download.

http://www.ocean-marketing.com/JF2002home.html

i've checked, there isn't any extra coding going on other than straight HTML.

The downloaded file opens fine, any ideas?

(I use a Mac and have noticed that theres no creator info for the Word doc I think thats why the browser may be getting tricked into downloading the file - ignore this bit if your not familiar with Macs)

thanks

AdamGundry
09-17-2003, 11:02 AM
That link opens in my version of IE (6.0) without starting a download. It's down to what the server is reporting as the content type - in this case, it reports the MIME type application/msword, which under a normal installation of IE/Office will launch in the browser. If you want a reasonably reliable forced download, you need to set the server to give the content-type as application/octet-stream, which is what the PHP script does.

Adam

96turnerri
09-18-2003, 08:14 PM
i have msie6.0 and it prompts for download would it be possible to give us the link to your site so we can see?

Rich