WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. canadian_srt10
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/html5-jquery-audio-player/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.