How to Fix ‘Unable to create directory’ error when uploading image into WordPress

This article is a little outdated. Please check the updated version of the tutorial on how to fix the unable to create directory error.

This post has a textual and video instructions showing how to fix the WordPress “Unable to create directory” error when uploading/inserting image into WordPress.

I started getting the “Unable to create directory /wp-content/uploads/2008/12. Is its parent directory writable by the server?” error when uploading or inserting image into a WordPress post just after upgrading to WordPress 2.7. First I thought it is a directory permission related error so I tried changing the permission of my ‘upload’ directory to 777 (which you shouldn’t have to do) but I was still having the same problem. After trying many things I was able to fix it using the following method.

  1. Log into your WordPress Admin account.
  2. Go to ‘Miscellaneous’ Settings options from the ‘Settings’ menu.
  3. In the Miscellaneous Settings put wp-content/uploads in the “Store uploads in this folder” text box.
  4. Save the Changes by hitting the “Save Changes” button and you are done.

Fix WordPress Image Upload Error: Video Instructions

Checkout the comments below for more tips.

If you have done everything explained here and it doesn’t help then it is most likely a server configuration issue. Contact your hosting provider and see if you can get help from them or look for a better hosting solution.

Found this article interesting? Subscribe to Tips and Tricks HQ

email icon rss feed icon twitter icon google plus icon

Comments (64 responses)

  1. Carol says:

    Hi. I was searching for a guide about how to fix this type of an error but I failed. I contacted my hosting provider about this and they helped me in few minutes. Finally, I found this guide and I learned about how to fix the error by my own in future. Thank you very much.

  2. Allen Taylor says:

    There are 1001 ways to fix this issue out there on the net. And I tried most of those non-fixes before landing on this page. You Sir are a Solutions Expert. Thank you for sharing. You made my day, and it was a very long day.

  3. hs99 says:

    Thank you for your help. Your tip fixed my issue.

  4. Brett says:

    Thank you!!! I was going crazy! One little setting ruined hours. lol

  5. Newbee says:

    Thanks a lot. I was able to fix the issue after reading this post.

  6. Jen says:


  7. André says:

    I’ve been very stressed with this.
    I searched a lot and nothing worked for me but now I figure it out! (At least for me)

    Try this if none of the previous solutions worked for you:

    1 -Go to PHP MY ADMIN to see your DB where do you have WordPress installed.
    2 – At the top, click in the two tools, in english will be something like “OPTIONS” or “OPERATIONS”.
    3 – select the AUTO INCREMENT and save/execute.

  8. Anthony says:

    Saw this tip today it was a great help.

    Thank you

  9. Anbarasan k says:

    I searched plenty of other sites to fix this. But nothing worked. But Your solutions fixed it in a min.!!!!.

    I am very happy…

    Thaks lot …

  10. Deb says:

    Thanks! It worked! It’s so great when you find a solution that quick and to the point without volumes of info to wade through! Made my day. (I know, I need to shut off the computer more often…)

    One thing, it wasn’t under ‘Misc’ under Settings, but ‘Media’ under Settings.. Prob mentioned in another comment, but thought I’d mention it anyway.

    Thanks again..

  11. amy says:

    you rock! thanks so much!

  12. Hindi says:

    Thank for your tips. It works

  13. Mergim says:

    Oh very Very Thanks

  14. Thanks very much, you really helped me solve this problem.
    Two thumbs up for you…..

  15. devarshi says:

    Thanks alot. I searched plenty of other sites and nothing worked. But Your video fixed it in a min.!!!!.

  16. y8 says:

    Thanks for giving me the useful information. I think I need it. Keep up your work. Thank you

  17. James Minh says:

    Thank for your tips. I have the same problem and I thought it was my fault when moving my blog to a new hosting. But in my dashboard, I don’t see the ‘Miscellaneous’ Settings options from the ‘Settings’ menu.
    I still look for the way to solve my problem. I will try some methods suggested by some others commenter here in your blog.

  18. Acneend says:

    It works like a charm! thanks

  19. End Acne says:

    Thank for the tip, I have fixed the unable to create directory errors

  20. Eva says:

    Thanks Ryan from the post #34 !!!

    For me works the same!

    ta-daaaah …

  21. John says:

    I tried changing the permissions to 777, that didn’t work either….

    Simple fix – delete the wp-content/uploads directory, then create a new one with the same name. It works with permissions set to 755 and 775, so you don’t have to create a security hole by setting it to 777 😉

  22. Ivy says:

    Hi, Your permissions should never be 777. This maybe why this is having an error many server block files using 777 permission as these are major security risks for your site. The permission for folders should be 755. You can read more about file permissions here:

  23. ltheuma says:

    i have installed 3.0.1, have changed to wp-content/uploads, permission is at 777 and still getting the same error

  24. aishwarya says:

    thanks! i had this problem ever since i migrated servers. nice work mate :)

  25. Ivy says:

    Hi Chris, It looks like these settings moved in WordPress 3.0. They are now located under “Media” in the “Setting Menu”.

  26. Chris says:


    I have just installed word press 3.0.1 and am having the error message as above. It sounds silly but in word press 3.0.1 I cannot find Miscellaneous Settings under settings on my dash board.

    Does any one know where i can find miscellaneous settings to correct my upload problem.



  27. Leigh says:

    Thanks so much for this post! I recently moved hosts, and I was baffled at what could possibly be wrong. The path was the entire server path. Once I changed it as you said, everything worked perfectly again.

  28. agon says:

    there is another fixing trick…change the permission on the wp-content directory to 766, 777 or 767…when u upload the pic… then change it as it was 755…

  29. Troy says:

    Thanks. It worked perfectly!

  30. Ryan says:

    Just found the issue.

    Even though we are told to put in the
    relative path

    it didn’t work.. what did was to put in your domain name before making it an absolute path

    such as

    and ta-dah worked!

  31. Jonny says:

    lifesaver, thanks.

  32. Ryan says:

    For those of you that get this error message after having a blog transferred to you, this fix works like a charm. Because sometimes when transferring it keeps the file path of the original owners server.

    Thanks for the quick and perfect fix!

  33. Thanks for small guide, it solved my problem (-:

    What it think is really strange, i have several pages on same template, by the same hoster, this problem only occored one my swedish page, the rest works with out this problem?

    Any this was one of the most easy problems to solve, thanks once again


  34. Tim says:

    I had this problem and spent several hours reading posts about with no luck. My permissions were right and the upload folder path was correct.

    I realised that it was a SELinux issue for me. If you run SELinux then you will need to run the command below to allow apache (httpd) to execute particular PHP commands, including creating new files and folders. Here is the command:

    chcon -R -t httpd_sys_content_t

    Hope that helps someone else. This was driving me crazy and I was about ready to give up and uninstall WordPress. Glad it didn’t come to that.

  35. Thanks a lot. I have now solved the problem on my dog tags blog.

  36. admin says:

    Did you check that the directory permissions are correct?

  37. Jordan says:

    I have tried everything you walked through a number of times and am still getting the error message. Could be a problem with my server/host?

  38. Saef Reyad says:

    ok i did it finally, thanks

  39. Saef Reyad says:

    i did this but am still having the same problem, is there is anything else i can do.


  40. Allin says:

    Cheers. I had a full path of webspace/httpdocs/ in the uploads box. restoring the default worked.

  41. Troy says:

    Worked great for me, thanks for the help.

  42. admin says:

    No comment… LOL :)

  43. Glanzer says:

    This didn’t work for me, but I now know why… I am building a site for someone and they’ve exceeded their 5 MB quota. Yes, someone opted for a plan that allows only 5MB of storage space.

  44. Patricia says:

    Wish I had seen your post earlier – it worked like a charm and gosh so simple.

    I had seen a few other posts where they talked about changing the path in the the mySQL database and the phpmyadmin. Although I tried , I was confused as could be.

    I’m now a raving fan & will be following your blogs, tweets and everywhere else you are.
    You totally rock!

  45. Special Tips says:

    thanks very much, it works

  46. Eric Transue says:

    Thank you for your help. Your tip fixed my issue.

  47. Abdul Cholik says:

    Thank you very much for your tip.
    I have fixed my problem. May I post this article on my blog so that my friend could be able to ffix the same problem ? I’ll link my post to this article.

  48. Recokiao says:

    Thanks, it was fast and is more secure, because, un other pages are saying to put your upload folder permisions on 777.

    Thanks again , the video is ok as it is.

  49. Thanks heaps – that was doing my head in!

  50. Sarah says:

    Thanks, worked a treat!

Speak Your Mind