Fix Parent directory writable by the server

Last Updated:May 29, 2021

I received the following error when I try to upload the images to WordPress

“Create-purchase-order.png” has failed to upload.
Unable to create directory uploads/2021/05. Is its parent directory writable by the server?

This is a common issue with WordPress and there are several ways to fix this issue.

This error happens due to the file permission issue or the location of the upload directory. Now we will see how to fix this.

Fix “Parent directory writable by the server” on shared hosting

Change the path of the upload directory

Now we will see how to specify the upload directory. You have to add the following line of code before the ABSPATH in your wp-config.php

 define( 'UPLOADS', 'wp-content/uploads' );

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

Change the permission of the upload folder

If you still get the error message after applying the changes stated on method 1, then you have to change the file permission of the upload directory.

Uploads folder and sub directories need 755 file permission

Don’t you know how to fix this issue? Please contact me to fix this