How to Fix ‘Unable to create directory’ error when uploading image into WordPress
Categories: Troubleshooting
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 but I was still having the same problem. After trying many things I was able to fix it using the following method.
- Log into your WordPress Admin account.
- Go to ‘Miscellaneous’ Settings options from the ‘Settings’ menu.
- In the Miscellaneous Settings put wp-content/uploads in the “Store uploads in this folder” text box.
- Save the Changes by hitting the “Save Changes” button and you are done.
Fix WordPress Image Upload Error: Video Instructions
Let me know if this method worked for you.
Tags: Troubleshooting, Video Tutorial, Web development, web masters, Wordpress








#1 by adedip on January 5, 2009 - 12:23 pm
the video is quite hard to understand..I can’t read anything..but a part from this..this is almost the default solution..it does help only the rookies..there’s something wrong in the 2.7 core code…
and I still can’t figure out what!
May help to know..that for me happens only if I use the sub-folder (year/month) organization..otherwise it works!
#2 by John on March 24, 2009 - 6:06 pm
I’ve tried this – still doesn’t work. Still haven’t found the problem.
#3 by admin on March 25, 2009 - 10:14 pm
What sort of error do you get?
#4 by Werner on March 27, 2009 - 2:15 pm
I went to the miscellaneous settings and saw that my upload path was wrong. Thank you so much for your help.
#5 by Chin on April 23, 2009 - 1:37 am
As I have installed the Wordpress in the 1click installer / Fantastico Installer the path was complete from root to this folder.
When I changed to default value (wp-content/uploads), Its works fine.
Thanks a lot to Tips and Tricks.
#6 by ryanel on July 1, 2009 - 1:27 am
go to option,general, look for the temp folder. and guide to the temp folder or where u want to put the temporary loads.
#7 by itamar on September 5, 2009 - 7:11 pm
Thank you so much for this!
I was running mamp on my laptop and this was doing my head in!
resolved now thanks to your post!
#8 by sergee on September 6, 2009 - 3:39 am
If you tryed everything and upload in your wordpress still doesn’t work – i have an answer for you. In short: php safe mode won’t let you create files or directories if your php scripts and upload directory belongs to different users. So there are 2 possible solutions: either disable php safemode (not recommended), or change an owner of scripts and upload directory:
cd blog_root
chown -R apache:apache *
Complete description available here: http://tamkovich.com/2009/09/unable-to-create-directory-wp-content-uploads-is-its-parent-directory-writable-by-the-server/ (in Russian)
#9 by Steve Fisher on September 20, 2009 - 1:43 pm
Thanks! The resetting permissions made me feel uneasy.
This was a simple reset because the install put a long string rooted to the shared server which of course wouldn’t give permission.
-Steve
Steve Fisher´s last blog ..Hello world!
#10 by raj on October 14, 2009 - 10:11 am
sir i em also facing the same problem
i saw your tutorial video and do setting accordingly but still facing the same problem
so plz tell me the other solution
#11 by Marcus on October 19, 2009 - 8:31 am
Awesome. I knew all about the file permission stuff (and they wouldn’t fix it), but by changing the upload path worked. Really sneaky error.
Thanks for helping out.
-M
#12 by Tuba on December 7, 2009 - 12:34 am
Thank you for your guide. Actually just to be more clear:
Under step 3:
“Miscellaneous Settings put wp-content/uploads in the “Store uploads in this folder” text box.”
Meaning replace the whole content of that field… instead of the anything there like /home/user/yorusete/wp-content/uploads
Thanks for your help!
Tuba´s last blog ..How do I Flush DNS?
#13 by admin on December 7, 2009 - 4:27 am
Thanks for clarifying that up
#14 by Sarah on January 6, 2010 - 4:54 pm
Thanks, worked a treat!
Sarah´s last blog ..New Years Resolutions (In the words of Father Jack: ‘Arse!’)
#15 by Luke Moujlton on January 12, 2010 - 7:06 am
Thanks heaps – that was doing my head in!
Luke Moujlton´s last blog ..Making the Most of Your Shopping Cart Thank You Page
#16 by Recokiao on January 25, 2010 - 6:52 pm
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.
Recokiao´s last blog ..Partes femeninas que ellos admiran a primera vista