If you use Fedora and WordPress and you get this error while trying to upload an image to your post:
The uploaded file could not be moved to /usr/share/wordpress/wp-content
All you need to do is labeling your uploads directory with the httpd_sys_content_t type:
[root@nyarlathotep wp-content]# pwd
[root@nyarlathotep wp-content]# chcon -t httpd_sys_content_t uploads/ -R
I hope this is useful for somebody else.