create a downloadable file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • steve-d
    Master Sergeant

    • Mar 2009
    • 61

    create a downloadable file

    I was just wondering how to make a downloadable file such as an mp3 for someone to download onto their computer.
    $T3V3
  • Tom Finley
    Brigadier General

    • Mar 2008
    • 1303

    #2
    Re: create a downloadable file

    Instructions here
    CLAMcentral.com Children's Ministry resources
    CLAMcentral's Projects Blog
    CLAMbakeonline.com Family Fun

    Comment

    • steve-d
      Master Sergeant

      • Mar 2009
      • 61

      #3
      Re: create a downloadable file

      thanx
      $T3V3

      Comment

      • steve-d
        Master Sergeant

        • Mar 2009
        • 61

        #4
        Re: create a downloadable file

        one more thing. I did what that thread said, but when I tested it out and clicked on the link all it did was open it with media player. the link of the download is this I would appreciate if someone could help
        $T3V3

        Comment

        • Watdaflip
          Major General

          • Sep 2005
          • 2116

          #5
          Re: create a downloadable file

          Either via ftp or through your file manager edit (or create if it doesn't exist) the .htaccess file for the directory the mp3 is stored in and add this code

          AddType application/octet-stream .mp3

          It will force the file to download instead of open

          Register/Login Script
          Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

          Comment

          • steve-d
            Master Sergeant

            • Mar 2009
            • 61

            #6
            Re: create a downloadable file

            for some reason the file shows up in ftp but I cannot edit it. and in the cpanel file manager the file does not show up.
            $T3V3

            Comment

            • Watdaflip
              Major General

              • Sep 2005
              • 2116

              #7
              Re: create a downloadable file

              Will it let you download it to your computer through the ftp? If so you can just open it in notepad (it will most likely prompt you to choose what program to open it with), save and then upload back up.

              Register/Login Script
              Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

              Comment

              • steve-d
                Master Sergeant

                • Mar 2009
                • 61

                #8
                Re: create a downloadable file

                ok I downloaded it to my computer opened the file .htaccess with notepad, and added exactly this AddType application/octet-stream .mp3 to the end of the text that was already in there. I then reloaded it to the server via ftp and the mp3 files are still just opening in a player as opposed to downloading.
                $T3V3

                Comment

                • steve-d
                  Master Sergeant

                  • Mar 2009
                  • 61

                  #9
                  Re: create a downloadable file

                  that did change the file type of all my mp3's in the file manager to application/octet-stream though, but they still open in a player when you click on the link
                  $T3V3

                  Comment

                  • steve-d
                    Master Sergeant

                    • Mar 2009
                    • 61

                    #10
                    Re: create a downloadable file

                    someone please help me with this problem I am having I cannot get to the point on my website that all someone has to do if they want to download an mp3 is click on a button and when they click on that, a little box will open up on their computer saying "what would you like to do? open or save this file", or even better if the person will just click on the button and it will automatically download the mp3 onto their computer. The method of making a link to the file works with other file formats just not mp3s I don't know why.
                    $T3V3

                    Comment

                    Working...
                    X