Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a download link 1

Status
Not open for further replies.

Manning

MIS
Sep 13, 1999
4
GB
Hello
I'm designing a website where you can download music, however I'm a bit stuck. I know how to upload the audio file, but I want to create a link for that file so when you click on it, that window appears where it asks you where you want to save the file to. How do I do this.
I'm using Dreamweaver MX 2004
Cheers
Manning
 
Just add a link to the file. say the files name is "file.mp3"

Then add the following in codeview, or using desing view use the link tool. doesn't really matter.

Code:
<a href="/folder_where_files_are_located/file.mp3"> Click here to Download file.mp3</a>


----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
I would zip the file. Otherwise many computers will just try to play the music file.

Dodge20
 
Just make an ordinary link (like vacunita says) and write next to it "(right click and save as)" - it's what everyone else does, so it's probably the best solution.

Some people may actually want to just have the file stream and play in their browsers - so unless you, for some reason, want to prevente these people from doing that - I'd be careful before trying anything fancy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top