• 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
  • How to Translate WordPress Using Weglot – Step by Step Guide

  • How to Move From WordPress.com to WordPress (Full Migration)

    How to Move From WordPress.com to WordPress (Full Migration)

  • 10 Ways to Regain Access Once You're Locked Out of wp-admin

    10 Ways to Regain Access Once You’re Locked Out of wp-admin

Coupons

View more deals
  • LearnDash Coupon Code!
    20% off

    LearnDash Coupon

    Searching for a LearnDash coupon to save on one of the top WordP
    Get This Deal
  • Toolset Coupon Code
    20% OFF

    Toolset Coupon

    Have you ever wished that you could build your own custom WordPre
    Get This Deal
  • GiveWP Coupon Code
    15% OFF

    GiveWP Coupon

    There are lots of site niches that rely on donations. Non-profits
    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

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

WPX Hosting: 50% OFF

Save 50% on WPX Hosting using our exclusive coupon code.

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