Upload Failed to Write File to Disk Error in WordPress Fix
This error can occur due to a number of reasons. However, the most common one is incorrect folder permissions.
If you try to upload images or any other files from 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/2016/03. Is its parent directory writable by the server?
1. Fix Upload Failed to Write to Disk Error in WordPress
First, you need to connect to your WordPress site using a FTP client.
Once you are connected, you need to right click on the wp-content folder and select file permissions.
This will bring up file permissions dialog box in your FTP client. It will show you file permissions for owner, group, and public.
You need to enter 755 in the numeric value field.
After that, you need to check the box next to ‘Recurse into subdirectories’.
Lastly, you need to click on ‘Apply to directories only’ option.
Click on the OK button to continue.
Your FTP client will now set folder permissions to 755 and apply it to all sub-folders inside wp-content. This includes uploads folder where all your images are stored. You can now visit your WordPress site and try uploading files.
2. Make your your server have enough disk space.
Some time if you are using shared server having limited disk space. Upload Failed to Write File to Disk Error came up if disk space is full, so make sure you are not out of space.