Fix for WordPress Image Upload Issue

by on May 25, 2009
in Uncategorized




wordpress-logoBloggers with self-hosted WordPress blogs must have come across an issue where when you try to upload an image or any media using the uploader in WordPress, and WP fails to move the file to your ‘uploads’ directory.

This issue is quite common in WordPress 2.5 and onwards and reasons are still unknown. Sometimes it gets fixed by giving the 0777 file permissions to all files and folders in the uploads directory, sometimes it doesn’t.

I have compiled a list of few fixes that are known to fix the following error WP error.

“The uploaded file could not be moved to /home/abc/public_html/yoursite.com/wp-content/uploads.”

Method 1: From your WordPress, go to Settings > Miscellaneous. There you will see the text box for “Store uploads in this folder”. By default you should have “wp-content/uploads” entered there. If this is your ‘uploads’ folder, then try leaving the text box blank (for the default value) or enter the default value if it doesn’t have anything in it.

Method 2: Another way is to CHMOD all the folders in your uploads directory to 0777. This is just a temporary fix and won’t be of any use later. You will have to CHMOD the folder again next month.

Method 3: You can also try making a new ‘uploads’ directory. You can name the new one with something like ‘uploads’2 or anything similar and change the uploads directory location (as told in Method 1). Don’t rename the old ‘uploads’ directory, because if you do, all the previously images will break and I’m sure you wouldn’t want to edit each of your posts again.

Remember to CHMOD the ‘wp-content’ folder to 0755 and the ‘upload’ folder to 0777. I’m sure this would fix the uploading issue, but still there are no confimartions that these work for all. It may or may not work for you.

If you have any other fixes to get rid of this WP error, then do drop in a comment below and tell. I’ll include it here with the other methods.

Was this post helpful? Follow us on Twitter (@SizzledCore) or become our Facebook fan for all the latest updates!


  • thanks. Its really helpful. :)

  • Thank you so much for this! I would have went nuts trying to CHMOD the directory after moving my WordPress installation from one directory to another. The answer for me was simply Method 1. But I wouldn’t have thought to look for that!