Knowledgebase: CPANEL-Hosting
How to allow access to images or files in a folder from the ftp
Posted by Sarah on 05 October 2010 12:42 PM

**This article assumes some advanced knowledge of ftp and cpanel.**

An alternative to this can be found here: http://www.portfoliositez.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=12

If you would like clients to have access to a "client" folder (or their own individual folder) on your website that acts like a directory of files, then setting up an ftp user account with a folder may be the best the solution.

1) Log in to your cpanel, under Files, click on ftp accounts

 

2) Create a username/password for folder

 

**Very Important!
If you want access to your entire directory, you must set this to public_html (use with extreme caution).  If you want to allow all clients access to a certain folder (PDF for example), then you would type in public_html/PDF.  This will give a directory list of all files in the folder PDF to anyone with this username/password.  So in this example, we can give anyone the username “client” have access to the client folder OR you can have only one client with the username "client" have access to this client folder. Basically, whoever you give this username/password to can have access.

3) Make note of the ftp information on this screen

4) Grant access by giving this information:

 The format is - ftp://YourFtpUser%40YourDomain.com:YourFtpUserPassword@yourdomain.com

as instructed by this article:  http://kb.siteground.com/article/How_to_connect_to_FTP_with_a_web_browser.html

So for our example the full url would be:

ftp://client%40myexampledomain.com:Password@myexampledomain.com

They can either click on the link to open the image and download there or right-click on the link and "save link as".

(741 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: