Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Download Link Doesn’t Work

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #41345
    sayedtaqui
    Member

    I m creating a religious website and wanted to give the visitors the option to Play and Download the religious songs. http://www.ourshiaislam.com/nauhay/ . I m using the download and the play link from the other website(with permission). When you click the PLAY button the song starts playing in a small window like I had setup however when you click on DOWNLOAD NOW button the download doesn’t begin unless you have IDM or any download manager. Download manager do the download from the link very well but without the download manager the downloading doesn’t start and the link opens a different page where the audio starts playing. How do I give the visitors the option to download? here is one of the link to download http://shiadownload.com/save.php?s=1&save=6603

    #117464
    Anonymous
    Inactive

    You could either zip the mp3 and serve that as the link or give people instruction to right click and save as.

    #117487
    chrisburton
    Participant

    I would just use htaccess for this as stated by @kevin11189.

    AddType application/octet-stream .mp3

    #117499
    sayedtaqui
    Member

    I dont have access to the server because the download link is of another website. So I think I would just write an instruction to do “Save link as” or probably do onclick=”alert(”)”. But I have another website where I have the same problem so I will add AddType application/octet-stream .mp3 there. Thank you all , it was helpfull

    #117500
    chrisburton
    Participant

    @sayedtaqui You can use the ‘download’ attribute in HTML5.

    See here: http://jsfiddle.net/UpYKP

    #117501
    sayedtaqui
    Member

    Wow chriburton, thank you very much, you showed up as an angel and solved the whole issue . God bless you.

    #117504
    Maxn
    Member

    just right click on link..go to SAVE link..then it will start download..

    #117535
    sayedtaqui
    Member

    The download link is starting to download great in Chrome however doesn’t work at all in mozilla or IE. what do I do ? If I keep it is as a hyperlink , visitors can right click and do “Save link as” however the button doesn’t do anything. I dont want to remove the button from there.

    #117536
    chrisburton
    Participant

    Chrome is the only browser at the moment to support the download attribute. If I were you, I wouldn’t use a Javascript alert.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Other’ is closed to new topics and replies.