When I try to upload a picture in any user profile, I get this error.

    * warning: move_uploaded_file(tmp/picture.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in D:\Hosting\4636339\html\includes\file.inc on line 579.
    * warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'D:\Temp\php\php7F1B.tmp' to 'tmp/picture.jpg' in D:\Hosting\4636339\html\includes\file.inc on line 579.
    * File upload error. Could not move uploaded file.

I have checked the "tmp" folder which is in the root folder on a shared hosting server, and it seems to have permissions set at "xxx" which I cannot change because it says the command is not understood.

Has anyone encountered this before?

Comments

grasser’s picture

I am experiencing the same error right now. I'll let you know if I resolve it. In the meantime, any advice you have regarding this issue would be greatly appreciated.

grasser’s picture

I lied, my issue was different. Mine was a matter of setting my temp directory to files/tmp in Site Configuration->File System.

Looks like your issue is a permissions issue and that you need to change your tmp folder permission to 777 instead of 775.