It’s frustrating (especially for beginners) to get an error message while uploading a file in WordPress. This post will tackle on a particular error – the one called Upload Failed to Write File to Disk. This early, however, let us assure you that it can be fixed.
What Causes the Upload Failed to Write File to Disk Error?
Actually, there are a lot of reasons why you might get an upload failed to write file to disk message. For now, we’re going to discuss the most common cause for the error – which is Incorrect Folder Permissions. You see, your server facilitates your access to your WordPress files through the types of permissions you give (as commands). In the next section, we’ll provide you with the steps on how to do it. In the meantime, let us show you some other error messages that you might encounter. These are similar to the Upload Failed to Write File to Disk error and, therefore, require the same solution.
- Upload failed to write file to disk.
- WordPress has failed to upload due to error in writing file to disk.
- Unable to create directory. Is its parent directory writable?
- WordPress failed to write to disk.
Solution to Upload Failed to Write to Disk Error
Follow these steps to fix the upload failed to write to disk error:
- Connect to your website through an FTP client. You can use FileZilla – this is free and easy to use. Actually, any other FTP client will do. Their looks may be different from each other, but the steps are basically the same.
- When you are already connected, right click on a folder called /wp-content and search for the permissions directory.
- Look for the permission directory that carries all 3 major groups – for the owner, for a group, and for the public.
- You will see a box with numeric field – enter the value 755 there.
- Look for Recurse Into Subdirectories option and click inside the box to check it.
- Find the Apply to Directories Only option and click on it.
- Click on the OK button to save the revised settings.
At this point, your FTP client will apply the changes in command to all folders in the /wp-content directory. We are almost through with the process of fixing the issue, but you still need to do the following steps (to revise the file permissions):
- When you see the /wp-content folder, right click on it and choose the file permissions option.
- In the numeric field, key in 644.
- Look for the Recurse Into Subdirectories box and click on it (this will place a check mark on the box).
- Finally, click the OK button to save the latest changes to the permissions.
In the last step, your FTP client will update all file permissions in the /wp-content to 644. After doing all the steps, there’s a big chance that the issue of failed to write to disk error will be solved.
Checking if the Solution Worked
OK, so you have already performed all the steps discussed above. To check if the procedure worked, upload some files in your WordPress and see if the error message is gone. Can you upload files now? If so, that means that you have already fixed the problem.
Backup Solution to Upload Failed to Write to Disk Error
In the unlikely event that you are still encountering the same problem or error message, we recommend contacting your hosting provider. For this particular error message, you can request them to delete the contents in your temporary files folder.
Please note that WordPress handles images by using php codes. With this method, all files are saved in a temporary files folder of your server first. While this method has its own purpose (e.g. as a backup of your uploads), having a full folder will prevent you from uploading more files – hence, your uploads will fail.
Note, too, that contacting your hosting provider is the only way to do this. You see, although the temporary files directory is located on your server, you really can’t access it directly. However, your hosting provider can – and they will empty it for you (upon request).
So, did our post solve your problem with the Failed to Write to Disk error in your WordPress? If it did, we’d appreciate a thumbs-up. Also, do know that we are always here to help you with your WordPress problems.