PDA

View Full Version : Download links



RockyRR
10-14-2002, 09:03 AM
I want to give web site viewers the option to download certain files from my web site (e.g., PDF files, word processing files, etc.). How do I do this (i.e., what coding do I put in)?

Thanks
Rocky

MandyJay
10-14-2002, 09:09 AM
Hi Rocky,
What you need to do is to zip the files up, then just link to the zip as would link to an ordinary page - type somethink like "download zipped version of MyDocument" and link those words to the zipped file. If you link directly to the pdf or word document, then that document will open up in programme that made it, but by zipping it up, when the link is clicked on it will then download.

RockyRR
10-14-2002, 10:47 AM
MJ,

As I understand, what you're saying is that the only way to provide the capability to download is to zip my files?

Thanks!

Eutychus
10-14-2002, 10:58 AM
Rocky, you could add a note to right click to download.

But two other methods for forcing downloads can be found at:

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=2183&lngWId=2
http://www.genasis.net/code/download.asp

RockyRR
10-14-2002, 12:02 PM
Eutychus,

Thanks. Looks interesting, but I guess I'll have to learn how to use active server pages!

Thanks

justjay
10-14-2002, 06:01 PM
Just to comment on the Zip thing...

If you just link to a file...like either a .doc, .pdf or .txt (just a few off the top of my head) the file will just open in the browser...

If you want to take a peek at what we are talking about ... click here (http://www.thejehm.net/look/linking.htm)

Post back and tell us if that helps you out at all...

RockyRR
10-14-2002, 06:12 PM
JustJay,

Thanks, they are good examples. I guess I'll have to use ZIP files. That would be better than having the document open by the associated application (e.g., WORD, EXCEL, Acrobat, etc.).


I assume EXE files work just like ZIP files for downloading.

justjay
10-14-2002, 06:18 PM
Not too sure what you mean here.....
I assume EXE files work just like ZIP files for downloading.

RockyRR
10-14-2002, 06:23 PM
I was assuming that files with the EXE extension would download like files with the ZIP extension....a "normal" download.

Hope that is more clear.

justjay
10-14-2002, 06:37 PM
In that case the Visitor will be prompted to either "Run from this Location" or "Save"

Does that help? (sorry I ain't running on all 8 cylinders this evening)

RockyRR
10-14-2002, 06:45 PM
JustJay,

No problem...thanks again!

have a good one.