Hi to all drupal user this is zakir.
i m getting following error whan i m uploading file in my live site.

arning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpiPmG0y' to 'sites/default/files/Dock of ....... .doc' in /home/......./public_html/includes/file.inc on line 572.

File upload error. Could not move uploaded file.

So plz help me for that becoz i m unable to uploading any file.

Comments

zakir.gori’s picture

plz i need some help

abhishek sawant’s picture

hi Zakir,

Please check your file system path in admin>settings>file-system, make sure the path is correct and if it is /tmp then make it writable. Change the permission to 777.
Hope this helps.

Regards
Abhishek

zakir.gori’s picture

Hi
Abhishek
Everythin is ok admin>settings>file-system, and ya the permission is writable i.e 777.
But still i m getting same problem see below..

warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpiPmG0y' to 'sites/default/files/Dock of ....... .doc' in /home/......./public_html/includes/file.inc on line 572.

File upload error. Could not move uploaded file.

zakir.gori’s picture

Can any one from community plz tell me the answer ?

abhishek sawant’s picture

hi,
This error usually comes if the tmp directly is not correctly set or the script doesnt have the permission to access the folders.
Check the tmp and files directly permission, change it to 777.
check the owner of folders, if no owner is assigned then use chown command
check the group of the folder.

Make sure you check everything mentioned above, it should solve your problem.

dpearcefl’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

is this still an active issue?

dpearcefl’s picture

Status: Postponed (maintainer needs more info) » Active
kars-t’s picture

Status: Active » Fixed

Hi

I am closing this issue to clean up the issue queue. Feel free to reopen the issue if there is new information and the problem still resides. If not please make sure you close your issues that you don't need any more.

Maybe you can get support from the local user group. Please take a look at this list at groups.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.