Solved

download option in HTML?

Posted on 2011-02-16
3
567 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

751 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