After moving WP-ME.com from GoDaddy to SiteGround WordPress Hosting and I started to write a new post, I couldn’t upload an image to the new post and this message appeared:
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.
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' );
but, make sure to add the code 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.
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.