Welcome Guest, Not a member yet? Register   Sign In
Upload folder permissions
#1

(This post was last modified: 03-25-2015, 08:09 AM by jpleyjon.)

Hi...using Upload Folder Class, destination folder must have 777 permission. The thing is that in my production server, client wants all folders with 755 so, I can't change this. Is there any way that CI's Upload File Class works with this permissions?
Reply
#2

Have you tried it with 755?

Reply
#3

Yes I did, and the files does not upload. Also there is no error message...
Reply
#4

(This post was last modified: 03-26-2015, 01:13 AM by Muzikant.)

(03-25-2015, 02:13 PM)jpleyjon Wrote: Yes I did, and the files does not upload. Also there is no error message...

Try the following:
  1. Change permissions on local server to 755
    If it will work locally, the problem will be somewhere else. If it will not work on local server, the problem is with permissions. If it is working on local server with CHMOD 755, the problem could be in paths.
  2. Check the paths to upload server
    I had similar problem. There was no error message, but the file was not uploaded. In my case, I had wrong path to upload directory. It worked on localhost, but not on production server. Try and check relative and absolute paths. It helped me, and it could be your problem too.
Reply
#5

If the permissions are 755, the account for your web server (i.e. www-data) must be the owner of the upload directory to be able to add files to the directory.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB