Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server.
First of all I thought that the problem may be from the permissions on the new server. I connected to my FTP server using FileZilla and started to check the
wp-content/uploads via FTP and I found that the folder of the current month is present. After that I thought that the cause of the problem may be file permissions as WordPress is unable to write/edit the parent folder, so I changed the permissions through FTP but I still can’t upload files to media library and still getting “Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server” error when I try to upload the files even after changing the browser.
How to solve “Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server” error
The cause of this error is that the wp-content/uploads folder does not exist because when I installed WordPress on the old server it automatically extracted the old path for uploads folder. The old path includes the user account on the server and when I migrated to the new server the username changed so for WordPress the file does not exist.
Looking for good SEO plugins?
Here’s a list of the Best WordPress SEO Plugins (picked by an expert)
To solve this annoying error all what you need to do is changing the path of the old uploads folder to the new one. Follow these steps to solve the problem:
- Log in to your WordPress admin panel (wp-admin).
- In the left menu go to Settings » Media.
- In the Store uploads in this folder field enter:
wp-content/uploadsand click Save changes.
- Now you are done, go and try to upload files to the media library again.
NOTE: make sure that the Store uploads in this folder field contain
I can’t find the “Store uploads in this folder” field in my Media Settings page?
If you can’t find the field in your media settings page you can solve the problem by adding the following code in your “wp-config.php” file:
define( 'UPLOADS', 'wp-content/uploads' );
just before this line:
require_once(ABSPATH . 'wp-settings.php');
And the “Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server” error will be solved.
Looking for a good hosting? Read this: Best WordPress Hosting providers (Expert pick)
For LocalHost Installs (XAMPP)
If you’ve installed WordPress on a localhost, and faces the error message and none of the above solutions fixed your problem. You may need to reset the ownership of the installation to nobody by doing the following.
1. Run command line/terminal:
- On Mac: Applications => Utilities => Terminal
- On Windows: Start => Programs => Accessories => Command Prompt
2. Run the following command
wordpress with your actual WordPress installation directory.
sudo chown -R nobody:staff /applications/xampp/xamppfiles/htdocs/wordpress
Do you still get the “Unable to Create Directory wp-content/uploads…” error message?
If you couldn’t solve the problem and the “Unable to Create Directory wp-content/uploads. Is its Parent Directory Writable by the Server” error message still appearing, let me know by adding a comment below and I will help you to fix the problem.