3 Ways to Overcome Error Upload Failed to Write File to Disk

Posted on

Are you getting the “Upload: Failed to Write File to Disk” error?

Don’t panic just yet. This error is a notification that occurs when you fail to upload an image on a WordPress website post.

The causes of this WordPress error also vary, one of which is limited disk space. Well, actually the way to deal with this error is quite simple and you can fix it yourself.

In this article, we will discuss some of the things that cause this error to appear, complete with ways to fix it easily. Immediately, we refer to the following discussion.

What is the “Upload: Failed to Write File to Disk” error and what causes it?

“Upload: Failed to Write File to Disk” is an error message that occurs when you fail to upload an image or website post on WordPress.

The “Upload: Failed to Write File to Disk” error in WordPress can be caused by several things. What most often occurs is due to an error in access rights on your website folder.

When you upload a file to a folder on the website, the web server will check whether you can add files to that folder or not.

If there is a folder that does not have the proper permissions, then the web server cannot add files to that folder.

However, in addition to wrong permissions on the folder, this error can also be caused because your website has exceeded the limit set on the hosting account used.

Apart from the two things above, capacity problems in the WordPress temporary folder can also be the cause.

Well, to overcome this, see the explanation in the next chapter below.

How to Fix WordPress Failed to Write Files to Disk

Here are some ways to fix the file upload failed error on WordPress that you can try!

1. Check and Change Access Rights in the Uploads Folder

In this tutorial we will cover two ways to change the permissions of folders on your website.

– Change Uploads Folder Access Rights Via FTP Client

You can change the permissions of a file or folder on a website using an FTP client such as FileZilla. Here are the steps:

1. Access website files with FileZilla.

2. Enter the WordPress installation, usually located in public_html. Open the wp-content folder. After that right click on the Uploads folder and select File Attributes…

3. A pop up will appear, then fill in 755 in the Numeric value form. Check the Recurse into subdirectories option, select Apply to directories only, and click the OK button.

4. Sometimes the above method doesn’t work. Therefore, please repeat the steps above, only fill in the Numeric value with 644. Don’t forget to tick the Recurse into subdirectories option and select the Apply to files only section. If so, please click the OK button.

– Change Uploads Folder Access Rights Through File Manager

You can also change it via your hosting account’s File Manager. Following are the steps.

1. Login to the control panel of your hosting account.

2. Select the File Manager menu.

3. Access the main directory of your WordPress website which is usually in the public_html directory. Then, please open the wp-content > uploads folder. Right click and select Change Permissions.

4. A pop up menu will appear, then tick as shown below. Change the checkmark so that the value becomes 755, then save by clicking the Change Permissions button.

5. Please check again by uploading the file. If the error still appears you can change the permissions for each folder in the uploads folder.

Well, that’s how to change the permissions of the upload folder through the file manager

2. Check your Hosting Limit

Another cause of the “Upload: Failed to Write File to Disk” error in WordPress can be caused by your website exceeding the limit set by your hosting service.

You can check website limits in several ways, namely through the WordPress plugin or through cPanel. Here’s how to see hosting limits via cPanel.

1. First login to cPanel using your hosting account.

2. Open the Disk Usage menu which is in the File column.

3. If you scroll to the bottom, you will see WordPress disk space usage in each directory.

4. If you see that your memory usage is very large or exceeds the limit, you can reduce disk space usage. The trick is to optimize images, delete unused templates and plugins, delete backup files after downloading, and delete spam comments.

So, that’s how to check your hosting limit.

3. Check the Temporary Folder

If the error is not caused by the two things above, the next step is to check the temporary folder of your WordPress website. Make sure it is not filled to maximum capacity.

WordPress will upload your content into a temporary folder. Furthermore, this content will be stored in the uploads folder. So, if the temporary folder doesn’t have enough storage space, the “Upload: Failed to Write File to Disk” error may appear.

To solve this problem, you need to contact the hosting service that you are using as well as ask for their help with the problem you are experiencing.

Fix the WordPress Failed to Write File to Disk Error Immediately, Now!

Error Upload: Failed to Write File to Disk” can indeed occur as a result of several problems. Such as problems with access rights/permissions for folders/files, usage exceeding the limit set by the hosting service, and temporary folders that are too full.

The solution of the three causes of the problem is not complicated. Armed with our tutorial, you can configure it yourself at home.

However, if you are still experiencing problems, you can directly contact your hosting support team for assistance.

[hurrytimer id=”247″]