File Upload Issue

Permalink
Unable to copy file to storage directory. Please check permissions on your upload directory and ensure they can be written to by your web server.

After shifting from oneserver to another I am getting this issue.

As you know 777 is a security thread if we do hosting company wont give any responsibility.

as we are uploading from the application we are not able it seem only need permission where the temporary file wil be upload rest server is copying from server to server.

So please do let me know what permission I put and on which folder is necessary only.

 
triplei replied on at Permalink Reply
triplei
You'll need to make sure that the files/ folder (and all sub-folders) have permission for the webserver user to write to it. Often this is 775.

Another thing I have run into is that PHP Safe mode can cause issues with file uploads. If possible, make sure that is disabled as well.

Hope this helps out