View Full Version : Upload Permissions

07-26-2008, 09:07 PM
Hey guys,

I have folders which i allow my users to upload images to. The only problem is, it's making me have to have the folder chmod'ed to 777. otherwise it returns an error saying permission denied.

I don't want the folder to be 777 because then users can see all the files :X

Anyway around this?

07-26-2008, 09:10 PM
Chown the folder to Apache (or whatever the user is that runs through httpd), and grant privilege of 660. Otherwise, move the directory above you're published directory - local users could still access the folder, but standard web-based access will be denied.

07-26-2008, 09:20 PM
or htaccess protect it, OR setup an index.html to redirect to the above directory