Solved

download option in HTML?

Posted on 2011-02-16
3
565 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IP 10.0.1.2 / 255.0.0.0 61 56
Copying table data to one another 15 31
if (is_singular not working 5 18
How would I craft a PDO SELECT based on an IF Statement? 8 7
Find out what you should include to make the best professional email signature for your organization.
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?
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

828 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