HTML5 jQuery Audio Player
[resolved] button links (2 posts)

  1. canadian_srt10
    Posted 2 years ago #

    How can you make the button links automatically download the a file? Right now it just opens a new window/tab and starts to load in whatever player is your default for a mp3.

    I'd prefer when you click "download" it actually opens the file system and asks where you want to save the file.

    Does that make sense?


  2. Maeve Lander
    Plugin Author

    Posted 2 years ago #

    If you want to force the browser to save the file rather than just display it in the browser you need to link to a script that initiates the download, rather than to the file itself.

    You could do this using JavaScript or PHP or on the server side, depending on your level of coding knowledge and requirements. Run a search on Google for "script to initiate download" and I think you will find a good number of tutorials for this.

    Alternatively you could link to a .zip (as opposed to an audio file) which browsers will automatically download rather than open/play.

    Hope this answers your query.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HTML5 jQuery Audio Player
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.