A common error in all versions of WordPress.
The uploaded file could not be moved to /home/public_html/wp-content/uploads/
When? - The error occurs at uploadvia files wordpress / dashboards / Write post.
Why? - because the blog has been moved (files + database) From one server to another and have lost attributes / permissions folders (chmod). (This is a particular case. The reasons may be different)
The solution is very simple. We edit the following line in php.ini:
safe_mode_gid=ON
We then change the permissions of the "uploads" folder.
chmod 777 wp-content/uploads
Have fun! :)