/    Sign up×
Community /Pin to ProfileBookmark

Downloading mp3 files using html

Hai

I am displaying a list of mp3 files in a html file.

I want to provide download option for the mp3 files from the html file.

Now i am converting mp3 files to a zip file and then downloading it as below

<a href=”song.zip”> Download file</a>

But i want to download it as an mp3 file itself.

please any body guide me to download the mp3 file from the html file.

Thanks
Sakthi

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@Robert_WellockOct 03.2007 — Within Apache to force a document to begin downloading rather than open; set a Multipurpose Internet Mail Extensions (MIME) type to application/octet-stream within; .htaccess and that immediately prompts you for the download.

AddType application/octet-stream mp3

Not possible with HTML alone.
×

Success!

Help @sakthivel_insof spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...