WordPress.org

Ready to get started?Download WordPress

Forums

mb.miniAudioPlayer - an HTML5 audio player for your mp3 files
Download button works, but doesn't (5 posts)

  1. fxscreamer
    Member
    Posted 1 year ago #

    My server is on Dreamhost, and the plugin seems to work great across the board. However, when I enable the ability to download the mp3, it WILL download....but between 300-900 bytes, so it works...but it's not at all. Even the filename is correct when it's on my hard drive.

    STEPS:
    * mp3's are uploaded to WordPress media library
    * Download box is clicked in mb.audio settings
    * I click download button for example_song.mp3
    * Browser shows example_song.mp3 "download" instantly.
    * example_song.mp3 is on my computer, but bytes big (meaning I don't have it)

    * I have set permissions of map_download.php to 777 to make sure.
    * It's a fresh native 3.5.1 WP install running Vertue as a theme.

    Anyway around this? I saw the hack, but it just opens the song in another browser tab. I want this to GRAB the file and download it like it was a zip file or something.

    http://wordpress.org/extend/plugins/wp-miniaudioplayer/

  2. paoloelleffegi
    Member
    Posted 1 year ago #

    I Have the same problem.
    I need a solution, it's very urgent.

    Thanks

  3. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Did you try cleaning your browser cache?
    Does it happens with all the audio files or just with one?
    You can download only files on the same domain due to restriction for cross domain policy. Is that your case?

    Bye,
    matteo

  4. johnkhill
    Member
    Posted 1 year ago #

    I've having the same problem as well. Thought it might be a cross domain issue so I tried with links to the full url and '/mp3/file.mp3'

    Both play fine, but nothing downloads. Same result in firefox and safari. Why can the DL link just be a link to the actual file?

  5. johnkhill
    Member
    Posted 1 year ago #

    In the meantime i've bypassed map_downloader by switching the the commented out lines at line 125 in jquery.mb.miniPlayer.js from

    var download = jQuery("<span/>").addClass("map_download").css({display: "inline-block", cursor: "pointer"}).html("d").on("click",function () {			//	window.open(player.opt.mp3, "map_download");
    					location.href = map.downloadUrl + "?filename=" + downloadURL + ".mp3" + "&fileurl=" + encodeURI(player.opt.mp3); //title.asId()
    				}).attr("title", "download: " + downloadURL);

    to

    var download = jQuery("<span/>").addClass("map_download").css({display: "inline-block", cursor: "pointer"}).html("d").on("click",function () {				window.open(player.opt.mp3, "map_download");
    	//				location.href = map.downloadUrl + "?filename=" + downloadURL + ".mp3" + "&fileurl=" + encodeURI(player.opt.mp3); //title.asId()
    				}).attr("title", "download: " + downloadURL);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic