If you get the “Unable to create directory” error while uploading images to a post or in the Media Library, the most common cause is a wrong upload path in your Media Settings. In order to fix this error, go to Settings > Media in your WordPress dashboard and enter “wp-content/uploads” in the “Store uploads in this folder” box (or clear the box so WordPress uses its default).
Site down or showing an error? White screen, critical error or database connection error: we find the cause and get your site back up for a flat $199. See site down fixes →
Video Guide for “Unable to create directory” WP error
Since WordPress 3.5 the upload path option is hidden from Settings > Media unless a custom path was already saved. If you don’t see it, set the uploads folder with the following line in your wp-config.php file, above the “That’s all, stop editing!” line. The path is relative to your WordPress root folder:
define( 'UPLOADS', 'wp-content/custom_uploads_name' );
For example:
define( 'UPLOADS', 'wp-content/'.'files' );
The same message also appears as “Installation failed: Could not create directory” when you install or update a plugin or theme. In that case the upload path is not the problem: WordPress cannot write to wp-content. Check that the wp-content, wp-content/uploads and wp-content/plugins folders are owned by your web server user and set to 755 (files to 644), and that your hosting account has not run out of disk space. Your host can fix ownership for you if you cannot change it with SFTP or the file manager.
You have brought our site online in record time after I had spent hours trawling through WordPress forums to find the solutions with no success.
Site down or showing an error?
White screen, “There has been a critical error on this website”, a database connection error or a site that won’t load. We find the cause and get it back up. Flat rate of $199.
