/    Sign up×
Community /Pin to ProfileBookmark

Saving/Downloading mp3 Files

Hey,

Just wondering if anyone can help?!?!?!?!

Im a little stuck with the javascript on this one. I can open the link to the mp3 file which is located on my server so that the track plays, however i want a function whereby i can click on a button and it will download, therefore saving the file onto the users computer. Is this at all possible and if so how do i go about it???

Please help, it is very much appreciated

Thanks

Jude

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@foid025Jan 23.2007 — I know its possible with PHP, and I can give you the script to do that if you want. I don't know about using Javascript though... This is a server side problem, cause you need to edit headers and all. Let me know if you want the PHP code though and I'll pull it up.
Copy linkTweet thisAlerts:
@judeauthorJan 24.2007 — the php code would be great thank you!!!
×

Success!

Help @jude 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.28,
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,
)...