Jump to content

Attaching Downloads to a page


King_Karlssen
 Share

Recommended Posts

I asked about this a while ago, I need help figuring out how to make a download, I was told this

<a href="filename.extension", target="_blank">Download here</a>

But unfortunately that just loaded a new page and played the file! I need help to make it so the file is downloaded onto their computer, And its actually a colllection of files in one folder, I need all the files, (all .mp3 files)To be downloaded with one hyperlink, how do i do this?

Link to comment
Share on other sites

most places will have a page that say, "you down load will start in a few seconds, click this link if you have any problems"and what they do on that page is code a meta refresh = 5; http://www.yourdomain.com/filename.extthen place a reference to that same file in the body where I quoted "click this link".The meta refresh will not open a new window and just go directly to the save file prompt as long as there is no mime setting that the browser will interpret as something it will load.P.S. Put all the mp3 files into a zip file and point to that using the method I describe above. I'd suggest including a readme.txt file int he zip file informing folks about any copyright or redistribution restricts that are attached to the mp3 files.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...