Title: draco2k's Replies | WordPress.org

---

# draco2k

  [  ](https://wordpress.org/support/users/draco2k/)

 *   [Profile](https://wordpress.org/support/users/draco2k/)
 *   [Topics Started](https://wordpress.org/support/users/draco2k/topics/)
 *   [Replies Created](https://wordpress.org/support/users/draco2k/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/draco2k/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/draco2k/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/draco2k/engagements/)
 *   [Favorites](https://wordpress.org/support/users/draco2k/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Error saving media attachment](https://wordpress.org/support/topic/error-saving-media-attachment/)
 *  [draco2k](https://wordpress.org/support/users/draco2k/)
 * (@draco2k)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/error-saving-media-attachment/page/2/#post-1137749)
 * If you are still having problems after trying all the great suggestions here,
   then selinux might be getting in your way if you are running it.
 * For a quick test:
    1. turn selinux off (as root: setenforce 0)
    2. try to save your file
    3. turn selinux back on (as root: setenforce 1)
 * If you were able to save your file, then the selinux context on your uploads 
   directory is wrong.
 * To correct (as root):
    1. cd to the parent folder of the uploads directory
    2. use the _chown -R <uname>: uploads_ command to ensure that the uploads directory
       and all sub-directories are owned by the uid of the webserver (e.g. chown -R
       apache: uploads)
    3. use the command _restorecon -R uploads_ to ensure that the uploads directory
       and any sub-directories have the correct selinux security context
 * After this you should be able to save your images.
 * I hope this helps!

Viewing 1 replies (of 1 total)