how to click on link to mp3 download and open save as instead of running stream?

Discussion in 'HTML & Website Design' started by tlynn, Nov 18, 2007.

  1. #1
    Hi,

    I posted this in programming but it may be more appropriate here...

    I want to have a link on a web page for people to click on to download .mp3 files and get prompted to save the file as, instead of them having to right-click and "save target as" or "save link as." Right now my link is an href and it just starts the media stream when clicked.

    Someone elsewhere suggested changing the MIME type? for .mp3 on the server side to binary, which I did through cPanel, and that just caused internal server errors until I deleted the line it inserted in the .htaccess file.

    Any help would be greatly appreciated.

    Tracy
     
    tlynn, Nov 18, 2007 IP
  2. AdnanAhsan

    AdnanAhsan Well-Known Member

    Messages:
    601
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #2
    wel they will prompt, you don't have to do any thing. it depends on what browser they are using.
     
    AdnanAhsan, Nov 18, 2007 IP
  3. tlynn

    tlynn Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If they install a player, Quicktime, for example, and let it make default decisions for them, like associating with mp3 files, then their browser is going to launch the player and start the stream when they click the link. I want them to get a dialog box that will prompt them to save the file.
     
    tlynn, Nov 18, 2007 IP
  4. lordadel

    lordadel Active Member

    Messages:
    1,035
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    90
    #4
    i don't know how...

    but you can simply zip the mp3 files and put them as (.zip) and then people will download then extract it
     
    lordadel, Nov 18, 2007 IP
  5. ianjw11

    ianjw11 Peon

    Messages:
    89
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    use "<a href="path2mp3file">click here</a>"
     
    ianjw11, Nov 18, 2007 IP
  6. tlynn

    tlynn Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    No that just links to the file and kicks off the stream.

    True, I can zip them and will get prompted to save, but this is a retail product and I want it to be as simple as possible. Most people don't know what a zipped file is.
     
    tlynn, Nov 20, 2007 IP