Forum Moderators: mack

Message Too Old, No Replies

How can I set it up so people can download PDF's from my site.

         

DavidJohnny

1:52 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



Newbie question.

How can I code my page to allow people to download PDF files and Excel worksheets (or any other kind of file.)

Is it as simple as linking to the document name? I tried doing that with an Excel worksheet, and it actually opened the sheet in a browser window. That may be OK for many uses, but I want to be able to pass them the intact file.

Thanks!

sonjay

2:38 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



You can zip it up and link to the zipped file.

Or you can put instructions on the page, right next to the link: "To download this file, right-click and choose...."

coopster

4:11 pm on Sep 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



The option to open or download is typically the user's choice. As stated, your best option is to instruct how to download the file if anything. Can you force a download? Depends on the browser and the headers you send to it.

DavidJohnny

4:28 pm on Sep 29, 2005 (gmt 0)

10+ Year Member



Thanks very much!

David