PDA

View Full Version : A ftp question?


kkz
04-06-2002, 01:52 PM
I want to set my directory like this: <br />user can upload file to the dir., but they are not allowd to download the file from dir. <br /><br />Anyone knows how can set right to the dir? <br /><br />Thank you

porntowers.com
04-06-2002, 02:28 PM
You could set upload permissions for the user to 222, but be warned you will not be able to access the file from FTP you will need to login as root to view the file. Not a very pretty solution. I suggest making a multi-type/form-data form place this on your website in the appropriate area and allow users to upload using this form (use Perl to parse the data perhaps include CGI.pm to aid). This way users will not have access to the file at all and will not know the contents of the directory. <br /><br />What are you using this for anyway?

porntowers.com
04-06-2002, 02:34 PM
Oh yeah, if you are giving write permissions on that directory you can probably expect that if you have multiple users using this method, you will overwrite previous data (i.e. if a person uploads 1.jpg I am sure there is someone else out there with the same file name who may upload this file overwriting the last). You could however make the script assign a random file name when writing to the directory to avoid this issue, but then you have the other problem which is repeats of the same file.

eromedia
04-06-2002, 02:42 PM
Anyone can upload, anonymous user, can upload but cant download because it can't be view online<br /><br />very easy, it's basic on any account..<br /><br />Check, you have an " anonftp "<br /><br />But it depend, do you use free hoster? <br /><br />Mav