+ Reply to Thread
Results 1 to 10 of 10

Thread: create a downloadable file
      
   

  1. #1
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Question 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

  2. #2
    Tom Finley's Avatar
    Tom Finley is offline Brigadier General
    Join Date
    Mar 2008
    Location
    Kauai, HI
    Posts
    1,296

    Default Re: create a downloadable file

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

  3. #3
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Default Re: create a downloadable file

    thanx
    $T3V3

  4. #4
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Default 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

  5. #5
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  6. #6
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Default 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

  7. #7
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default 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

  8. #8
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Default 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

  9. #9
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Default 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

  10. #10
    steve-d's Avatar
    steve-d is offline Master Sergeant
    Join Date
    Mar 2009
    Posts
    60

    Default 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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49