Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default Noob question :(

    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. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,884
    cPanel/Enkompass Access Level

    Root Administrator

  3. #3
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    Quote Originally Posted by Cochoz View Post
    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.
    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)

    Quote Originally Posted by Cochoz View Post
    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
    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
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  4. #4
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default

    Quote Originally Posted by rhenderson View Post
    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
    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. #5
    Member rhenderson's Avatar
    Join Date
    Apr 2005
    Location
    Oklahoma
    Posts
    742

    Default

    PM me the long crazy link so I can see what you are talking about.
    Regards,
    Randy
    Affordable Web Hosting
    _________________________

  6. #6
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default

    Quote Originally Posted by rhenderson View Post
    PM me the long crazy link so I can see what you are talking about.
    I understand you are trying to help but for security reasons I can't give it to you. Anyways I'm mobile right now, when I get home I'll make a link similar to it.

    EDIT: Here is what the crazy link looks like.

    http://xx.xx.xx.xxx:xxxx/download?sk..._4.15_RAPH.rar
    Last edited by Cochoz; 03-26-2009 at 12:10 AM.

  7. #7
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #8
    Registered User
    Join Date
    Mar 2009
    Posts
    4

    Default

    Quote Originally Posted by brianoz View Post
    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.
    Oh gosh, thanks dude! that worked flawlessly! <3

    Since you're from Australia, Good job mate!

  9. #9
    Member
    Join Date
    Aug 2008
    Posts
    33

    Default

    Let us know if you need any other help, we would glad to help. Feel free to post here

  10. #10
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,884
    cPanel/Enkompass Access Level

    Root Administrator

    Wink

    Quote Originally Posted by Sean.barron View Post
    Let us know if you need any other help, we would glad to help. Feel free to post here
    These sort of questions are better left up to the host providing the service to the end user.

Similar Threads & Tags
Similar threads

  1. Noob question I am sure, Can someone point
    By mscobia in forum New User Questions
    Replies: 1
    Last Post: 03-13-2010, 10:26 PM
  2. Noob question
    By dbiz in forum New User Questions
    Replies: 7
    Last Post: 07-06-2009, 05:35 PM
  3. Noob Question About Uploading.
    By Courtix in forum New User Questions
    Replies: 1
    Last Post: 09-09-2008, 10:53 AM
  4. Noob Spam question
    By SteveTPI in forum New User Questions
    Replies: 9
    Last Post: 04-03-2006, 01:19 PM
  5. Another silly noob question
    By steel rat in forum Data Protection
    Replies: 11
    Last Post: 01-06-2005, 11:26 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube