Solved

download option in HTML?

Posted on 2011-02-16
3
564 Views
Last Modified: 2012-05-11
How can I make  .mp3 file donwload link in html?

<a href="audio.mp3">Click here to Download</a>
when i click on the link, the mp3 file just play in browser.

 <a href="audio.zip">Click here to Download</a>
when i zip a file it begin to download.

But i dont want to zip a file, how can i download mp3 files without zipping them?

Thanks.
0
Comment
Question by:shahzad198509
3 Comments
 
LVL 35

Accepted Solution

by:
mrichmon earned 500 total points
ID: 34909206
You can't control this.

It is up to each browser on how they have chosen to implement each file type - whether to download or open.  In my browser it downloads mp3 files.  In yours it does not.

You could put up instructions:
To download this file right click on the link and choose "Save As..."
0
 

Author Comment

by:shahzad198509
ID: 34909777
can i control this with php scripting language?
0
 
LVL 2

Expert Comment

by:meenaxi
ID: 34913747
Your first coding itself is enough to download mp3.

<a href="audio.mp3">Click here to Download</a>

i checked with IE and Firefox
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question