• moonjw

    (@moonjw)


    I made link to mp3 file for download after clicking this link. However, I found it will automatically play this mp3 file.

    Do any one know how to force download after clicking this link?

    Thanks in advance.

    Best Rgds
    moon

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    To play or download is really controlled by the user’s web browser. The only way you can force a download is to upload your mp3 files as .zip files instead.

    @moonjw,

    I was able to accomplish a “force mp3” download by adding the following to the .htaccess file.

    <FilesMatch "\.(mov|mp3|jpg|pdf)$">
      ForceType application/octet-stream
      Header set Content-Disposition attachment
    </FilesMatch>

    I am trying to upload a .Mp3 file to my wordpress server using MEDIA, ADD NEW.
    When I select the file and add it I get and error that says “HTTP error” it does not matter if I use the multi-file or the Browser uploader I get the same error. The size of the file is 113,327KB.

    Can someone tell me how to get the file uploaded ???

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to force download after clicking the mp3 file link’ is closed to new replies.