Jesse Lawson

Software engineering, artificial intelligence, writing, and open-source tools

Aug 30, 2014 - Tutorials WordPress

Can't Upload Images in WordPress (Solved!)

A few clients were experiencing problems in the media uploader on their sites. When trying to upload something in the Media Uploader, they were getting errors like:

Unable to create directory


Unable to upload image. Is the directory writeable?

It would seem that everything points to a permissions problem, but in fact, it’s an error in the database table.

Specifically, take a look at the wp_options table, and look for upload_path. Notice anything? the option_value is blank!

To fix this error, all you have to do is run the following SQL command on your database:

UPDATE wp_options SET option_value = "wp-content/uploads" WHERE option_name = "upload_path"

That’s it!