How To Fix “Upload: Failed To Write File To Disk” Error In WordPress

How to fix "WordPress failed to write to disk" or "WordPress has failed to upload due to an error failed to write file to disk" or "Unable to create directory wp-content/uploads/. Is its parent directory writable by the server?"

If you host your website on WordPress CMS, then it’s a very common issue to get the notification on the admin panel that reads “Upload: Failed to Write File to Disk”, especially when you try to upload images or videos on your posts.

Actually, this issue is coming from some preset configurations in your server, and you can fix it easily from the same.

Each file and folder on your website has a set of permissions. Your web server controls access to the files based on these permissions.

If you try to upload images or any other files from the WordPress admin area, you will get one of the following error messages:

“WordPress failed to write to disk”

“WordPress has failed to upload due to an error failed to write file to disk”

“Unable to create directory wp-content/uploads/2020/02. Is its parent directory writable by the server?”

To fix all these issues, we have summed up here an easy universal solution:

  1. At first, go to your hosting panel (cPanel/Plesk) and click on the Online File Manager, where you can access your WordPress website’s files, folders and their permissions.
  2. Right-click on the files or folders you wish to change the permissions of and then select “Change Permission.” For now, you have to set the correct permissions for the wp-content folder to fix your issues.
  3. A checkbox will pop up where you can select the boxes and adjust the permissions. It will show you file permissions for owner, group, and public.
  4. Set all these permissions as your need. Once done, confirm the changes, and you are good to go.
  5. To set it correctly, you need to enter 755 in the numeric value field for the wp-content.
  6. After that, you need to check the box next to ‘Recurse into subdirectories’.
  7. Lastly, you need to click on ‘Apply to directories only’ option. That’s it.
  8. Now after clearing all browsing data and cache memory, open your WordPress admin panel on a new browser tab and check whether your issues have been solved or not.

Here is a simple guide on how you will set the correct permissions for your WordPress website:

Recommended File Permissions for wp-content

For the wp-content folder, you should choose the permission value 755, and all the files within the folder must have 644. Thus, this will ensure that no one can write anything within the folder except the site owner.

Recommended File Permissions for wp-includes

You should choose the permission value 755 for the wp-includes folder, which includes all the core files and all the files that are necessary for the proper functioning of WordPress admin and API.

Recommended File Permissions wp-config

The wp-config is one of the most sensitive folders in the entire directory since it contains all the information about base configuration and also the database connection information. The appropriate permission for this folder will be 400/440. This means that the user and groups have permission to only read and others will not be able to access the files within it.

Recommended File Permissions for wp-root

The blank file present in the wp-root hides the entire directory, and without this file, the entire file directory will be naked. The suggested file permission will be 444. This permission gives reading authority to all, including the user and the group.

A summarized table for all the WordPress Permissions:


To this day, WordPress is the most powerful and user-friendly CMS in the web world developing. It helps you to build up a premium quality website with so many cool features within minutes. And the WordPress file permissions are necessary for securing your account and protecting all your hard work. If you have set up your account on your own, then it’s possible that you might have ignored this step. But we strictly advise you to double-check all these configurations, otherwise, you will end up giving so many loopholes to the opportunistic hackers, posing a potential threat to your account. Hope this post helped you. If you find any difficulty to complete this step, let us know in the comment section. We will try to help you.

Leave a Reply