0
Welcome Guest! Login
0 items Join Now

Force Mp3 Download

  • Force Mp3 Download

    Posted 16 years 2 weeks ago
    • Can anyone tell me how to force an mp3 to download, I am a preacher with a christian site and want to offer my mp3's for free download but when you click them now they just stream, I would like them to force download, any suggestions?

      Mike.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Force Mp3 Download

    Posted 16 years 2 weeks ago
    • Hopefully this will work :)

      Create a .htaccess in your mp3 directory and add this code:

      <Files *.mp3>
      ForceType application/octet-stream
      Header set Content-Disposition attachment
      </Files>
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • Thanks... a question tho...

      my files are hosted on a different server than my website, I teach bible school and all the files are hosted on their site, it didn't make sense to me to upload them all on my server also so I am linking to them from my site...

      so do I need to create the .htaccess and put it on their server?

      Mike.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • "so do I need to create the .htaccess and put it on their server?"

      Yes :)
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • Ok trying it now... :cheesy:
  • Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • Ok I put the .htaccess on my site in my audio folder and it force downloads from there, I also put it on the server on the bible school site but the files there still stream instead of download... my site is here studytheword.net

      you will find the mp3's under audios, all the files are on a different server except the word of God series...

      any help appreciated...

      Mike.
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • Ok, then maybe your bible school server is not running Apache?
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • It is a unix server running Apache
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • Ok then i'm not sure what's up with that server. Someone else may have a solution :)
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
  • Re: Force Mp3 Download

    Posted 16 years 1 week ago
    • thanks for all your help...

      Mike.

Time to create page: 0.071 seconds