How to fix Upload Failed to Write File to Disk Error in WordPress?

Upload Failed to Write File to Disk Error

0 Comment

6 mins Read

Upload Failed to Write File to Disk Error
Get your SSD VPS

Get your SSD VPS

Starting from $4.95/month.

Check it Out

Have you ever seen Upload: Failed to Write File to Disk Error in WordPress? Do you know what the exact reason for that is? In this article, we’ll discuss this file upload error in WordPress websites and tell you how to fix it.

Attempting to upload an image, but Upload Failed to Write File to Disk Error in the WordPress appeared? It is really annoying when your WordPress site encounters this error.

This error can take place for a number of reasons, but the most common reason can be related to Incorrect Folder Permissions. However, troubleshooting and fixing it is very simple. First, let’s explain some of the causes of this error in more detail:

Note: in some cases, before starting troubleshooting the Upload Failed to Write File to Disk Error in WordPress, you should access your Hosting Account or VPS.

What is the exact Cause of the Upload Failed to Write File to Disk WordPress Error?

You have just finished writing a good post for your WordPress site. Now, it’s time to upload that fantastic image and add it to your post. Suddenly, this error appears:

Upload: Failed to Write File to Disk WordPress error.
What is wrong with your image? Is it any issue with the format of an image? Or maybe, it’s a usual problem related to your hosting account or VPS? You may also think about website exceeding or Error 509 to fix the problem.

If you are new to WordPress, image upload errors can be confusing. Failure to upload an image on WordPress sites is a standard error. As we mentioned before, one of the most important reasons for the Upload Failed to Write File to Disk Error in WordPress can be due to folder permissions issues.

Folder permissions issue

file permissions

Incorrect folder permissions suppress WordPress from uploading an image (or reading file) on the hosting machine. Therefore, you will be unable to update your WP-content (including all related files and subdirectories) or upload images to the server.

How To Solve Folder Permissions Issue to fix Failed to Write File Error?

To solve this problem, you can use cPanel File Manager or FTP client to reset the permissions folder of WordPress (this error can also be solved using SSH). If this folder is set to prevent users from writing or modifying data, then it makes a problem for you.

To determine the issue, you can check the Site Health Tool. It is very simple. Go to your dashboard, navigate to the “Tools > Site Health > Info” tab. In the dropdown menu, you can see file permissions that should be set to Writeable. If the dropdown menu shows Not Writeable, then Upload Failed to Write File to Disk Error in WordPress will appear.

Besides, if you consume all the Disk space provided for your hosting account, you may see this error. But, do you know how to fix this error? Continue reading this guide to help your WordPress site to solve the issue.

Start Blogging Start Blogging

Self-host your WordPress on top-tier hardware, featuring NVMe storage and minimal latency around the world — choose your favorite distro.

Get WordPress VPS

How to Fix Upload Failed to Write File to Disk Error in WordPress?

Fixing and Troubleshooting of the Upload Failed to Write File to Disk” Error in WordPress can be fairly simple.
Below, we’ll tell you 3 solutions for tackling this problem:

  1. Changing the permissions for your WordPress upload directory
  2. Acquiring more disk space via your hosting provider
  3. Empty Temporary Folder of the WordPress

1- Changing the Permissions for Your WordPress Upload Directory

To change the folder permissions, you need to use an FTP client. An FTP client allows you to upload files from your device to your VPS or server. So, select your preferred FTP client and connect to your VPS via FTP (File Transfer Protocol).

How to Connect to FTP Servers?

set the numeric to 755

To make an FTP connection, you can use an FTP client or a standard browser (such as Internet Explorer or Mozilla Firefox). Then, go to /wp-content/ folder and search for the Uploads folder.

All uploaded WordPress media, including images, can be found in this folder. Now, click on the uploads directory and select File Permissions. In the dialogue box that appears, you will need all uploads folders and related subdirectories to be set to 755.

Type this value into the numeric value box. Now, do it again, but this time set the numeric value to 744 and check the Recursive into subdirectories box and click on Apply to files only radio button. Finally, click on OK to apply the new changes

Note: if setting directory permission to 744 doesn’t fix the Upload Failed to Write File to Disk Error in WordPress, then instead try using 755 for all files and folders inside the Uploads directory.

upload failed to write file to disk error

Now enter your WordPress folder and search for the “index.php” file. Once you find it, right-click on it and select File permissions.

change numeric to 644

This time set the numeric value to 644 and apply it to change the setting. In this stage, the permission of all files inside the uploads folder will change and it is applied to all related wp-content subfolders (including the uploaded image folder).

Then, go back to your WordPress admin area to see if the problem is solved. If you check the Site Health Tool again, the upload folder of your WordPress site should be listed as Writeable. Now, try uploading your selected image to your WordPress website. But if the issue persists, try our second solution.

2- Acquiring More Disk Space via Upgrading Your Hosting Service

As we mentioned before, you may have used all of the allocated disk space for your WordPress site. If you have chosen a shared hosting server and have grown over time by new themes, plugins, posts, and pages, then, using too much space is entirely predictable.

Most Hosting Providers let you know about the allocated disk space. They also let you know how much disk space is used. In this situation, the best solution is accessing more disk space via upgrading your hosting account. Sometimes by allocating more disk space, you can solve the Upload Failed to Write File to Disk Error in WordPress sites.

Start Blogging Start Blogging

Self-host your WordPress on top-tier hardware, featuring NVMe storage and minimal latency around the world — choose your favorite distro.

Get WordPress VPS

3- Empty Temporary Folder of the WordPress

Sometimes, another solution for fixing and troubleshooting the Upload Failed to Write File to Disk Error in WordPress sites comes with the Temporary Folder. WordPress uploads your image via PHP. It first uploads your image to the temporary directory on your web server. Then, it moves them to the WordPress download folder.

Sometimes, this temporary folder is incorrectly configured or full. Therefore, we recommend you empty the temporary folder to upload new files to your WordPress site. This error can often be solved by deleting the temporary folder contents, but unfortunately, you can’t access this directory by the File Transfer Protocol client.

To Empty the Temporary Folder of WordPress, you should contact your hosting provider to see if this folder is full and needs to be emptied. They can also determine the real cause of the Upload Failed to Write File to Disk Error in your WordPress site.

Start Blogging Start Blogging

Self-host your WordPress on top-tier hardware, featuring NVMe storage and minimal latency around the world — choose your favorite distro.

Get WordPress VPS

Conclusion

In this article, we learned that Upload Failed to Write File to Disk Error in WordPress sites may occur for a couple of reasons. You may encounter this error on your WordPress site, but Troubleshooting it can be simple. We offered three solutions to this issue. You can also change permissions via SSH protocol, or checking Quota Limit for fixing this error.
Do you know any operational solutions? Please share your experience in the comments.

FAQ

Why WordPress Does Not Upload My Photos?

The image issue in WordPress is typically related to file permission. To fix the Upload Failed to Write File to Disk Error in WordPress sites, you should change the applied setting and configure the setting to Writeable.

How Do I Fix an Image Upload WordPress Error?

We suggest you do the following methods:

  1. Change the folder permissions
  2. Deactivate those plugins related to images
  3. Increase your WordPress site’s storage limit
  4. Remove the file path on the media setting
  5. Check the PHP version in use to see if it is causing any problems

What Does Failed to Write to Disk Mean?

The leading cause of Upload Failed to Write File to Disk Error in WordPress sites can be the incorrect or flawed configuration of permissions for a WordPress folder.

How Do I Fix File and Folder Permissions in WordPress?

You can fix this error using the “Filesystem Security” menu. First, hover over “WP Security” and select the “Filesystem Security” menu to see a list of critical Folders and Files. Then set recommend permission to fix this error via the WordPress plugin.

What Are the Recommended File Permissions for WordPress?

  1. wp-config should be set to 660
  2. All files should be set to 664
  3. All folders and folders inside public-HTML should be set to 775
An SEO-Specialist who loves digital marketing and has a background in creating content. Matt loves teamwork and enjoys working with professional people. He always tries to bring more things to the team.

Comments

Leave a Comment

Your email address will not be published. Required fields are marked *


Latest Posts