Here is the sureshot solution to problems involving directory creation and file permission errors in wordpress Media  add and edit issues.

wordpress-directory-errorI moved my old blog to a new server recently and when adding a new post I had problems when adding a picture to a new post. Each time I used to upload a new photo it gave me the following error.

Unable to create directory wp-content/uploads/2016/08. is its parent directory writable by the server?

I did a quick google search for a solution to this problem and after following a few instruction doing a trial and error method I finally got it working.

Step 1 : As suggested by most people first check the file permission (CHMOD) on the upload folder.

Using the File Manager of the cpanel or your FTP software navigate to wordpress root > wp-content > uploads.
Then locate the permissions option or properties option in your FTP / Filemanager and allot proper file rights like shown below.


Make sure the permissions are better than 0755.

Step 2 : Then on the wordpress dashboard go to Settings > Media

If you have changed the server, like me, most likely the old file path and the actual file path are now different. So edit your file path accordingly. If you don’t see the option to change the file path then probably you don’t have an issue here. But if you still wish to change the file path correctly then do this.

Open your wp-config.php file, locoed at the root of your WordPress installation, and add the following snippet:

define(‘UPLOADS’, ‘wp-content/myimages’);

Make sure you add this code before the line:


More posts you might be interested in:

Disable Javascript on IE8 /IE7 (Internet Explorer) : Common Mistakes
Displaying HTML DIV above flash content (transparency + z-index)
Fix : Product Installation Unsuccessful Please Reinstall Error 24 – Corel Photo Paint, CorelDraw etc...

Leave a Reply