tags:

views:

23

answers:

2

Hi everyone!

I'd like to alter the default behavior of a link that points to an mp3 file. All major browsers always open and play this mp3 file in a new window, and I'd like instead that this file be offered as a download by the browser.

¿Any Idea?

Thanks!!

+2  A: 

If you control the server hosting the mp3, try serving it as Content-Type: application/octet-stream. and Content-disposition: attachment.

Matthew Flaschen
Thank You very Much!I have made a little php script that works perfect with your idea.
Alberto
+1  A: 

If you don't have enough control to set the content header, you could provide instructions that say to "Right click and Save As...", I've seen a lot of web sites do this.

John JJ Curtis