• Categories
    • Tutorials
    • Beginners Guide
    • WordPress News
    • WordPress Security
    • Best WordPress Plugins
    • WordPress Themes
    • Product Reviews
    • WP Tips & Tricks
  • Guides
    • Start a Blog
    • Make a Website
    • WordPress Hosting
  • WordPress Hosting
    • A2 Hosting
    • HostGator
    • Bluehost
    • Cloudways
  • Managed Hosting
    • WPEngine
    • Rocket.net
    • WPX
    • Kinsta
  • Coupons
    • WPEngine
    • Flywheel
    • Cloudways
    • A2 Hosting
    • WPX Hosting
WordPress Tutorials

How to Fix the ‘Upload: Failed to Write File to Disk’ Error

Last Updated on: July 1, 2022 Tom Rankin Leave a Comment

How to Fix the ‘Upload: Failed to Write File to Disk’ Error

If you’re new to the world of file permissions in WordPress, know that this can affect a number of interconnected elements of your site. If those permissions change into something more restrictive, and the server can’t access certain files, you’ll see an error. The ‘Upload: Failed to Write File to Disk’ error and its equivalents is one such issue that (fortunately) has a few simple fixes.

In fact, there are three main reasons for the error in question:

  1. You have a simple issue with your site’s file permissions.
  2. The temporary WordPress folder needs clearing out to recover storage space.
  3. Your site is reaching the maximum storage quota limit, and there is no physical space available.

You’ll need a few tools and skills along the way, but we’ll cover all of them in turn. Let’s get down to business, and start with your site’s file permissions.

1. Edit Your Site’s File Permissions

When we talk about an issue with your site’s file permissions, we mean a specific folder – uploads. This is essentially your Media Library on the server, and if this folder doesn’t have the right permissions, you’ll see the ‘Upload: Failed to Write File to Disk’ error.

To find out if this is an issue, head to the Tools > Site Health > Info page within WordPress:

The Site Health screen within WordPress.

If the Filesystem Permissions list shows that the uploads folder is Not Writable, you’ll need to fix its permissions. To do this, you’ll need a few items to hand:

  • A suitable Secure File Transfer Protocol (SFTP) client.
  • Administrator access to your server.
  • Suitable skills to use SFTP and navigate your website’s files.
  • Knowledge of WordPress file permissions, and how to change them using SFTP.

The folder you need should be in the wp-content directory of your site – uploads is a sub-directory along with your plugins, themes, and other files:

An SFTP client showing the uploads folder on a server.

The process to change the permissions depends on your SFTP client. For Cyberduck, you’ll head to Info > Permissions. For FileZilla, there’s an explicit option available. Regardless, you’ll see a number of checkboxes and a three-digit number:

Changing the file permissions for the WordPress uploads folder.

That number should be 775 in order to give your server the permissions it needs to write files. Once you change the figure (if necessary), save your changes, and check for the ‘Upload: Failed to Write File to Disk’ error using the Site Health tool.

2. Empty the WordPress Temporary Folder

WordPress – and in fact many apps – use a temporary folder to store files while it moves them around your file infrastructure. Your computer will do this too – it’s a typical way to upload and download files between locations.

For example, when you look to upload or download a file, WordPress will store it in a temporary directory first, then break the file into chunks and transfer it to your uploads folder. However, if the temporary folder lacks room for the full file, it won’t be able to move it to the uploads folder. The result is the ‘Upload: Failed to Write File to Disk’ error.

While it would be nice to be able to clear out this folder from WordPress or using SFTP, you won’t be able to do this in most cases. Instead, our advice is to contact your host, tell them your issue, and ask them if they can check the temporary WordPress folder.

3. Check the Quota Limit for Your Site and Server

A related issue for the ‘Upload: Failed to Write File to Disk’ error is server space, namely the lack of it. Your quota limit goes by a few different names, but it’s a measure of the space you have left to use on your server.

In most cases, you can check this from your hosting control panel. You might need to hunt for the usage figures – for example, you might find it in a corner of the screen…

The Disk Usage display within SpinupWP.

…or it could be visible in the sidebar, as per cPanel:

The cPanel sidebar showing the disk usage allowance.

Regardless, you’ll know straight away if this is an issue. It can be a common one, especially if you use shared hosting or use a smaller plan from a managed WordPress host. Either way, you know what to do here – upgrade your hosting, or switch if all of the factors make sense to do so.

Conclusion

There’s no way to avoid a WordPress error, but as long as you can fix it, all will be well. The ‘Upload: Failed to Write File to Disk’ error is one that appears due to file permissions in most cases. You’ll need some SFTP skills to access your server and fix the issue.

However, there are other considerations you need to make if your file permissions are fine. For example, consider whether you need more space from your chosen WordPress host. There are lots of times where this is a factor, and a full disk means you won’t have the room to write to it.

Do you have a question about the ‘Upload: Failed to Write File to Disk’ error? Ask away in the comments section below!

+ Share
Disclosure

Tom Rankin

Tom Rankin is a quality content writer for WordPress, tech, and small businesses. When he's not putting fingers to keyboard, he can be found taking photographs, writing music, playing computer games, and talking in the third-person.

Related Posts

Back to all articles
  • WP Activity Log Review

    WP Activity Log Review: How to Secure Your Site and Log Activity

  • How to Stress Test WordPress Using a Free Tool (Full Guide)

  • How to Increase the Memory Limit in WordPress

    How to Increase the Memory Limit in WordPress

Coupons

View more deals
  • LearnDash Coupon Code!
    40% off

    LearnDash Coupon

    Searching for a LearnDash coupon to save on one of the top W
    Get This Deal
  • WP Activity Log Coupon
    20% OFF

    WP Activity Log Coupon

    Website security encompasses a whole host of elements, tasks, and
    Get This Deal
  • Recipe Card Blocks Coupon
    15% OFF

    Recipe Card Blocks Coupon

    Running a cooking or food website can be fun (and tasty) – but
    Get This Deal

Leave a Reply Cancel reply

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

Our Newsletter

Get awesome content delivered straight to your inbox.

Thank you!

You have successfully joined our subscriber list.

.

THE BEST OF WPKUBE

Some of the best content we have published so far.

BEGINNER GUIDES & REVIEWS

18 Best Cheap WordPress Hosting Providers in 2023 (From $1.99)
210 Best WordPress Hosting Options for 2023 (Pros & Cons)
38 Best Managed WordPress Hosting Providers for 2023 Compared
45 Best WooCommerce Hosting Providers Compared in 2023 (All Budgets)
5Top 9 Landing Page Plugins for WordPress (2023)
69 Best List Building Plugins for WordPress In 2023
7How to Fix the 500 Internal Server Error on Your WordPress Website
8Thrive Themes Review: A Look At The Full Membership
9Beaver Builder Review: Is it The Best Page Builder Plugin for WordPress (2023)?
10OptimizePress Review: Create Landing Pages with Ease
11How to Make a Website: Complete Beginner’s Guide
12Top 22 Best Free Stock Photo Resources For Your Site
1317 of the Best Google Fonts for 2023 (And How to Use Them in WordPress)
14How to Start a Blog in 2022 (Step by Step Guide)
15How To Fix ‘503 Service Unavailable’ WordPress Error
1611 Best Contact Form Plugins for WordPress in 2023
17How to Add a Custom Logo to Your WordPress Site
18How to Fix Error Establishing a Database Connection in WordPress

WPEngine: 50% OFF Deal

Save 50% on one of the best managed hosting providers.

Get this Deal

Flywheel(our review)

Featured In Forbes Huffpost Entrepreneur SEJ

About WPKube

WPKube is an online WordPress resource which focuses on WordPress tutorials, How-to’s, guides, plugins, news, and more. We aim to provide the most comprehensive beginner’s guides to anything about WordPress — from installing plugins, themes, automated installs and setups, to creating and setting up pages for your website.

We have over 500+ tutorials, guides, product reviews, tips, and tricks about WordPress. Founded by Devesh Sharma, the main goal of this site is to provide useful information on anything and everything WordPress.

Twitter Facebook

Useful Links

  • Behind the Scenes
  • Beginner Guides
  • WordPress Hosting
  • WooCommerce Themes
  • MeridianThemes
  • Exclusive WordPress Deals
View All Guides »

Reviews

  • WPEngine 33% OFF
  • Thrive Leads
  • Flywheel 33% OFF
  • Divi Theme 20% OFF
  • Thrive Architect
  • Elegant Themes
Reviews »

Deals

  • InMotion Hosting
  • LifterLMS Coupon
  • LiquidWeb Coupon
  • WPEngine Coupon
  • A2 Hosting
  • FloThemes
More Deals »
© Copyright 2023 WPKube ® All Rights Reserved.
  • Contact
  • Site Terms
  • Disclosure
  • Privacy Policy