#1 (permalink)  
Old 03-25-2009, 04:12 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
Cochoz is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-25-2009, 05:52 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,498
Infopro is on a distinguished road
Lightbulb

Maybe this post will help you.

http://forums.cpanel.net/showthread....141#post493141
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-25-2009, 04:43 PM
rhenderson's Avatar
Registered User
 
Join Date: Apr 2005
Location: Oklahoma
Posts: 722
rhenderson is on a distinguished road
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
_________________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-25-2009, 05:06 PM
Registered User
 
Join Date: Mar 2009
Posts: 4
Cochoz is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-25-2009, 05:12 PM
rhenderson's Avatar
Registered User
 
Join Date: Apr 2005
Location: Oklahoma
Posts: 722
rhenderson is on a distinguished road
PM me the long crazy link so I can see what you are talking about.
__________________
Regards,
Randy
Affordable Web Hosting
_________________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 03-25-2009, 05:28 PM
Registered User
 
Join Date: Mar 2009
Posts: 4
Cochoz is on a distinguished road
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 01:10 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-26-2009, 04:23 AM
brianoz's Avatar
Registered User
 
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 984
brianoz is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-26-2009, 05:09 AM
Registered User
 
Join Date: Mar 2009
Posts: 4
Cochoz is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 03-26-2009, 07:05 AM
Registered User
 
Join Date: Aug 2008
Posts: 24
Sean.barron is on a distinguished road
Let us know if you need any other help, we would glad to help. Feel free to post here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 03-26-2009, 07:17 AM
Infopro's Avatar
Forum Moderator
 
Join Date: May 2003
Location: Pennsylvania
Posts: 3,498
Infopro is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc