Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-02-2013, 01:36 AM   PM User | #1
needsomehelp
Regular Coder

 
Join Date: Oct 2009
Posts: 309
Thanks: 4
Thanked 3 Times in 3 Posts
needsomehelp can only hope to improve
file permissions

I have no problem with logged in users uploading images to the site, without having to change the permissions of the folder they are saved to. But with another function elsewhere i get an error about filesize stat.
After googling i find that this error is normally due to the folder that is being referenced is not writable. But I do not know the correct setting to use that is safe but still allow the users to upload.

My uploader script gets the image details and resizes it and save it to a randomly generate (unique) filename.

Can anyone tel me what I should be setting the permissions of the folder to.
needsomehelp is offline   Reply With Quote
Old 02-02-2013, 05:17 AM   PM User | #2
jalex718
New to the CF scene

 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
jalex718 is an unknown quantity at this point
Quote:
Originally Posted by needsomehelp View Post
I have no problem with logged in users uploading images to the site, without having to change the permissions of the folder they are saved to. But with another function elsewhere i get an error about filesize stat.
After googling i find that this error is normally due to the folder that is being referenced is not writable. But I do not know the correct setting to use that is safe but still allow the users to upload.

My uploader script gets the image details and resizes it and save it to a randomly generate (unique) filename.

Can anyone tel me what I should be setting the permissions of the folder to.
0777 should be your permissions for anything your writing to. if filesize isnt working it is because your read permissions arent set. Try chmod to change the files permissions to 0666.
jalex718 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:34 PM.


Advertisement
Log in to turn off these ads.