The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Noob question :(

Discussion in 'General Discussion' started by Cochoz, Mar 25, 2009.

  1. Cochoz

    Cochoz Registered

    Joined:
    Mar 23, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    How can you give a uploaded file a set download URL?

    for example: I upload a file name.rar If I were to give someone the link to download this file I would get a crazy download link. Instead I would like something more simple like "www.mydomainname.com/extras/downloads/name.rar" and make the file download using a link like this.

    Also where do I create the folders on my file manager? public_html?

    I have googled, yahoo!, tried looking for step by steps but couldn't find anything :(
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  3. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Yes you can just create the folder structure /home/username/public_html/extras/downloads and upload the file to there (Replace username with you actual account username)

    Yes everything in /home/username is not available via the web but (depending on permissions being set correctly) everything above and including /home/username/public_html is

    Good luck
     
  4. Cochoz

    Cochoz Registered

    Joined:
    Mar 23, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    First of all, thank you guys for your replies. I have succesfully added the folders to Public_HTML but for the download link I am still getting a long/crazy URL. Would the permissions change it? If so which permission should I use?

    Remember my goal is to give a downloadable content a permanent link.

    For example www.myhost.com/downloads/project.zip. <<< and with this link be able to download the file.
     
  5. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    PM me the long crazy link so I can see what you are talking about.
     
  6. Cochoz

    Cochoz Registered

    Joined:
    Mar 23, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    #6 Cochoz, Mar 25, 2009
    Last edited: Mar 26, 2009
  7. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    Download links like the ones you are talking about are how apache works. Currently you are getting crazy links as you are downloading through some package (that provides downloads.php).

    If you upload a file as:
    /home/user/public_html/downloads/file.rar

    you will be able to download it as:
    www.yourdomain.com/downloads/file.rar

    However, you will have to upload via ftp and not some other mechanism so you are absolutely sure the file is in the right place.
     
  8. Cochoz

    Cochoz Registered

    Joined:
    Mar 23, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Oh gosh, thanks dude! that worked flawlessly! <3

    Since you're from Australia, Good job mate! :D
     
  9. Sean.barron

    Sean.barron Active Member

    Joined:
    Aug 16, 2008
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Let us know if you need any other help, we would glad to help. Feel free to post here:)
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,448
    Likes Received:
    194
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    These sort of questions are better left up to the host providing the service to the end user.
     
Loading...

Share This Page