Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    410
    Thanks
    6
    Thanked 3 Times in 3 Posts

    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.

  • #2
    New to the CF scene
    Join Date
    Jan 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •