WordPress failed to write file to disk

New Page

  1. Hogar
  2. Center of Recursos
  3. Knowledge base
  4. WordPress issues
  5. How to correct the error “Cargar: no se pudo escribir el archivo en el disco” sur WordPress

How to correct the error “Cargar: no se pudo escribir el archivo en el disco” sur WordPress

Last update: September 19, 2022

wordpress no pudo escribir el archivo en el discoCircle

If you find the error “Cargar: no se pudo escribir el archivo en el disco”, puede ser más que molesto porque no puede cargar nuevos archivos hasta que lo haya solucionado.

Fortunately, hay algunos pasos que puede seguir para resolver este error de WordPress , so that pueda volver a cargar correctly los archives en su biblioteca multimedia . The possible solutions are the simplest to adjust the algunas configuraciones a través del Protocolo de transferencia de archivos (FTP) y hacer una llamada a su proofedor de alojamiento.

¿Apurado? Save this article as a PDF.

¿Cansado de desplazarse? Download a PDF version to learn more without connecting with friends more easily.

To download

In this article, we’ll explain why you might see the error “Upload: Failed to write file to disk” on your WordPress site. Next, we’ll walk you through three potential solutions to get your workflow back on track.

Let’s go!

Contents

  1. Why You’re Seeing “Upload: Failed to Write File to Disk” Error in WordPress
  2. How to Fix Upload: Failed to Write File to Disk Error in WordPress (3 Potential Solutions)

Why You’re Seeing “Upload: Failed to Write File to Disk” Error in WordPress

La plupart du temps, l’erreur Télécharger : Impossible d’écrire le fichier sur le disque est due à un problème avec les autorisations de fichiers de votre site. Par mesure de sécurité, WordPress permet uniquement à certains utilisateurs de modifier ses fichiers, y compris le dossier qui stocke les téléchargements.

If the permissions for this folder are set to prevent users from modifying or ‘writing to’ it, then your upload attempts will fail. You can quickly determine if this is the issue by using the Site Health tool.

Navigate to Tools > Site Health in your dashboard, and click on the Info tab. The last dropdown menu will show you the file permissions for a handful of folders, including the uploads directory:

See how Kinsta stacks up against the competition. Select your provider WP Engine SiteGround GoDaddy Bluehost Flywheel HostGator Cloudways AWS Digital Ocean DreamHost Other Compare archive system permissions Filesystem Permissions dropdown in Site Health tool

The directory should be set to Writable. If it’s set to Not writable, then you know you’re dealing with a permissions issue.

There are a few other, less common reasons for this problem. When you add a new media file, WordPress stores it in a temporary folder before moving it to the uploads directory. If the temporary folder is full or unavailable, you may see the Upload: Failed to Write File to Disk error.

Additionally, if you’ve used all the disk space on your server that was allotted to you by your hosting plan, you may see this error. In this case, it’s your server’s way of telling you there’s no more room for additional files.

How to Fix the Upload: Failed to Write File to Disk Error in WordPress (3 Potential Solutions)

Fixing the Upload: Failed to Write File to Disk error is fairly simple. Here are three solutions for tackling this issue, based on the root cause.

  1. Cambie los permisos de archivo de su directorio de cargas
  2. Vaciar la carpeta temporal de WordPress
  3. Upgrade Your Hosting Plan to Access More Disk Space

1. Change the File Permissions of Your Uploads Directory

If you’ve used the Site Health tool to determine that your Upload: Failed to Write File to Disk error is due to incorrect permissions, you’ll need to use File Transfer Protocol (FTP) to fix it. If you’re unfamiliar with this process, we have a full guide on how to get started.

You’ll need an FTP client such as FileZilla installed on your computer (if you want to show hidden files here is the trick). You’ll also require your FTP credentials, which you should be able to find in your hosting account dashboard.

Les clients de Kinsta peuvent trouver le leur directement dans MyKinsta, en naviguant vers Sites , en cliquant sur le domaine concerné et en regardant sous SFTP/SSH  dans l’  onglet Info :

Enregistrez-vous pour recevoir le bulletin d’informations

S’inscrire maintenant

By submitting this form, I agree to the Terms & Conditions and Privacy Policy, including data transfer to the United States. By sharing your email, you also agree to receive occasional information related to Kinsta services, events, and promotions. You are free to unsubscribe at any time.

Want to know how we increased our traffic by over 1000%?

Join over 20,000 other people who receive our weekly newsletter with insider WordPress tips!

Subscribe Now FTP credentials in MyKinsta panelFTP Credentials in MyKinsta

Enter your credentials in your FTP client and launch your connection to the server. Then navigate to your downloads directory in public_html > wp-content :

ftp subidas directoryAccessing the downloads directory via FileZilla

Right-click on the folder, then select File Permissions :

archive access permitFile permissions setting

A numeric system is used to determine permissions settings for files on your site. Your download directory should be set to 755:

archival exchange permitsChanging file permissions

Click the OK button to save your new permissions settings. Then return to your WordPress site.

If you check the Site Health tool again, your downloads folder should now be listed as Writable :

Struggling with downtime and WordPress issues? Kinsta is the hosting solution designed to save you time! Discover our features

estado del sitio escribibleFile write permissions in the Site Health tool

At this point, you should be able to upload files to your WordPress site without issue.

2. Empty the WordPress temporary folder

If file permissions aren’t a problem for you, you can try emptying the temporary folder that WordPress uses to upload files to your site. Unfortunately, you cannot access this directory via FTP.

Au lieu de cela, vous devrez contacter votre fournisseur d’hébergement pour vous aider dans cette tâche. L’équipe d’assistance devrait être en mesure d’accéder à ce fichier caché sur votre serveur et de déterminer s’il est plein ou s’il est à l’origine de l’erreur Télécharger : Échec de l’écriture du fichier sur le disque.

3. Mettez à niveau votre plan d’hébergement pour accéder à plus d’espace disque

Il est également possible que vous ayez utilisé tout l’espace disque fourni par votre plan d’hébergement (voici comment vérifier l’utilisation du disque dans WordPress). Cela est particulièrement probable si votre site se trouve sur un serveur partagé et s’est développé au fil du temps grâce à l’ajout de publications et de pages, de plugins, de thèmes, etc.

Most hosting accounts show how much disk space you are currently using. Kinsta customers can find this information in their MyKinsta dashboard, under Resource Usage :

Using the Disco on MyKinstaDisk Usage in MyKinsta

Fortunately, the solution to this problem is very simple. If you max out your site’s current disk space allocation, all you have to do is upgrade to a new hosting plan. Your provider should provide clear documentation on how to upgrade to a new plan.

Is your site getting the error “Download: Failed to write file to disk”? Too bad… but it’s usually an easy fix. Check out these three methods to fix the problem and start downloading files again ⬆️📦Click to Tweet Summary

Quickly resolving the Upload: Failed to write file to disk error in WordPress is key to ensuring this issue doesn’t slow down your business. To fix this error, here are the three most common potential solutions:

  1. Check the file permissions of your downloads directory.
  2. Empty the WordPress temporary folder.
  3. Upgrade your hosting plan to access more disk space.

Économisez du temps, de l’argent et maximisez les performances du site avec :

  • Aide instantanée d’experts en hébergement WordPress, 24h/24 et 7j/7.
  • Intégration Cloudflare Entreprise.
  • Audience mondiale avec 35 centres de données dans le monde.
  • Optimization with our built-in Application Performance Monitoring.

All of that and much more, in one plan with no long-term contracts, assisted migrations, and a 30-day-money-back-guarantee. Check out our plans or talk to sales to find the plan that’s right for you.

How to Fix “Upload: Failed to Write File to Disk” Error in WordPress

Last updated on March 22nd, 2016 by Editorial Staff | Reader DisclosureDisclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us.

Shares 381 Share Tweet Share Facebook Messenger WhatsApp Email

Are you seeing ‘Upload: Failed to write file to disk’ error when uploading files in WordPress? This common error can be very frustrating for beginner users. In this article, we will show you how to fix “Upload: failed to write file to disk” error in WordPress.

The cargo no pudo write the archive in the error of disco in WordPress Le téléchargement n'a pas pu écrire le fichier sur le disque dans WordPress

What Causes Failed To Write File To Disk Error in WordPress?

This error can occur due to a number of reasons. However, the most common one is incorrect folder permissions.

Each file and folder on your website has a set of permissions. Your web server controls access to the files based on these permissions.

Incorrect permissions to a folder can take away your ability to write files on server. This means your web server cannot create or add new files to that particular folder.

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?

Fix Upload Failed to Write to Disk Error in WordPress

First, you need to connect to your WordPress site using a FTP client.

For this tutorial, we are using the free FileZilla FTP client. If you are using some other FTP client, then it might look a little different.

Once you are connected, you need to right click on the wp-content folder and select file permissions.

Autorisations d'archivage FTP Autorisations de fichiers FTP

This will bring up file permissions dialog box in your FTP client. It will show you file permissions for owner, group, and public.

Cambio de permisos de archivo para la carpeta wp-content Modification des autorisations de fichier pour le dossier wp-content

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 also want to make sure that file permissions for individual files in your wp-content folder are correct.

Once again, right click on wp-content folder and select file permissions. This time we will change permissions for files.

Enter 644 in the numeric value and then check the box next to ‘Recurse into subdirectories’.

Lastly, you need to click on ‘Apply to files only’ option.

Click on the OK button to continue. Your FTP client will now set file permissions to 644 for all files in wp-content folder.

You can now visit your WordPress site and try uploading files.

If you still see the error, then you will need to contact your WordPress hosting provider and ask them to empty the temporary files directory.

WordPress uploads your images using PHP which first saves the uploads to a temporary directory on your web server. After that it moves them to your WordPress uploads folder.

If this temporary directory is full or is poorly configured, then WordPress will not be able to write the file to disk.

This temporary folder is located on your server and in most cases you cannot access it using FTP. You will need to contact your web host and ask them to empty it for you.

We hope this article helped you resolve ‘Upload: Failed to Write File to Disk’ Error in WordPress. You may also want to see our guide on how to fix common image issues in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Shares 381 Share Tweet Share Facebook Messenger WhatsApp Email

WordPress Troubleshooting

Sep 26, 2022

Domantas G.

4min Read

How to Fix WordPress Failed to Write File to Disk Error in 3 Ways

Copy link

Copied!

Cómo corregir el error de WordPress al escribir el archivo en el disco de 3 formas Comment réparer WordPress n'a pas réussi à écrire le fichier sur le disque de 3 façons

Download Ultimate WordPress Cheat Sheet

When you see the Upload: Failed to Write File to Disk error on your WordPress site whilst trying to upload a photo for that awesome post you just put together, the only reaction can be pure frustration. And while this problem is not desirable, debugging this WordPress error is quite easy. In this tutorial, we will discuss various causes of the error, and show you how to fix it with easy-to-follow steps.

  • Why You Get Upload: Failed to Write File to Disk Error
  • Option 1 – Checking Uploads Folder Permissions
    • Option 1.1 – Changing Permissions with FTP Client
    • Option 1.2 – Changing Permissions with Hostinger File Manager
    • Option 1.3 – Changing Permissions via SSH
  • Option 2 – Checking Quota Limit
  • Option 3 – Checking Temporary Folder

Why You Get Upload: Failed to Write File to Disk Error

The Upload: Failed to Write File to Disk WordPress error can surface due to a number of reasons. The most typical cause of the error is incorrect folder permissions. But besides incorrect permissions, this error can also occur due to your website exceeding the quota limit of the hosting service. Finally, in some rare cases, you might be experiencing this error due to the file capacity of the temporary folder of WordPress. Needless to say, all three cases of the error are fixable, and we will show you the solutions to each and every one of them in the following steps.

Option 1 – Checking Uploads Folder Permissions

As stated above, this is the most common cause of the Upload: Failed to Write File to Disk WordPress error. Whenever you try to write (upload) files to any one of the folders on your website, the web server checks whether the folders are allowed to write those files. If any folder does not have the appropriate permissions, the web server is unable to write files to that folder. The same goes for making changes to particular files, as they also have permissions which determine the interact-ability with that file. There are three methods of modifying folder permissions on your web server:

Option 1.1 – Changing Permissions with FTP Client

You can change permissions of files/folders of your website using FTP clients like FileZilla. First, connect to your hosting using FileZilla. Then, hover over to WordPress installation folder (usually it’s public_html) and to wp-content folder. Now right-click on the folder Uploads. Select File Permissions. You will now see a new dialog box open up; in the Numeric value section, enter 755. Now, check the Recurse into subdirectories option. This will apply the same permission to all folders inside Uploads. Finally, choose Apply to directories only in the sub-menu. Finish by clicking OK.

Arreglar la carga: no se pudo escribir el archivo en el disco con FileZilla Correction du téléchargement : Échec de l'écriture du fichier sur le disque avec FileZilla

Keep in mind that sometimes, merely changing folder permissions does not work – you have to change permissions for files residing inside the folder as well. You can achieve this using FileZilla as well. Once again, right-click on the wp-content folder and choose the File Permissions option. Next, enter 644 in the Numeric value field. Finally, check ‘Recurse into subdirectories’, and this time, select Apply to files only. Click OK to save your settings.

Option 1.2 – Changing Permissions with Hostinger File Manager

If you’re using a WordPress hosting service like Hostinger, you can change folder permissions easily through the control panel provided by the service. To do this, log in to your web hosting account through File Manager.

L'administrateur des archives en hPanel de Hostinger. Le gestionnaire de fichiers sur le hPanel de Hostinger.

Then, navigate to the public_html -> wp-content folder. Once inside, you should be able to see the Uploads folder. Right-click on this folder, and then hit on the Permissions button. Now, set the permission to 755 (read and write) for this folder, if it isn’t already set.

Try to upload image again and if the error still pops up, proceed to changing the permissions on individual files inside the Uploads folder as well, just like in the previous step.

Cambio de permisos de archivos con Hostinger File Manager Modification des autorisations de fichiers avec Hostinger File Manager

Option 1.3 – Changing Permissions via SSH

Important! It’s recommended to check tutorial on how to manage permission and owners via command line before proceeding with this step.

On Hostinger shared hosting or VPS you can change file/folder permissions via SSH (see our tutorial on how to connect to your account or VPS with SSH). To change permissions using SSH, you only need to use the chmod command, like this:

  1. First of all, access WordPress installation folder. For example, if your WordPress is inside public_html folder, execute: cd public_html
  2. Now change permissions to 755: chmod 755 wp-content

    Al ejecutar el comando anterior, el permiso de la carpeta wp-content se establecerá en 755. Si desea otorgar el mismo permiso a todos los archivos y carpetas dentro de este directorio, simplemente agregue el indicador -R antes de 755 en el comando.

Opción 2 – Comprobación del límite de cuota

Otra causa del error Cargar: no se pudo escribir el archivo en el disco de WordPress es si su sitio web ha excedido el límite de espacio del servicio de alojamiento web. En el alojamiento compartido de Hostinger , el espacio en disco es ilimitado, pero muchos otros proveedores de alojamiento establecen límites bastante bajos.

Unlimited Hostinger Nightclub Space Unlimited Hostinger disk space

Contrary to the creencia popular, exceed the limit of cuota de su alojamiento proporcionado no es tan raro, especialmente if su sitio web es rico en contenido. If this is realmente el caso, querrá eliminar algunos archivos not utilizados en el servidor. 

Option 3 – Comprobation of the temporal carpet

If the error persists, you may be sure that the temporal carpet of your WordPress site is at its maximum capacity. WordPress works cargando su content en una ubication temporal en el servidor y luego procede a guardar este contenido en la carpeta Cargas . Pero si la carpeta temporal no tiene espacio, entonces no hay form de que ese contenido llegue a la carpeta  Cargas y se el error Cargar: no se pudo escribir el archivo en el disco  .

If this is the case, you will have to contact us with your proof of accommodation. If está in VPS, aquí hay instructions sober as limpiar el espacio in disco in VPS.

Conclusion

In this tutorial, see how to solve the Cargar error: no se pudo escribir el archive in el disco de WordPress. The error can be caused by:

  • Improper archive/carpet permits
  • Superación delímite de cuota del proveedor de alojamiento web
  • Overflow of the temporal carpet

Con suerte, siguiendo esta guía, pudo resolver este error and continuear guardando multimedia content in su WordPress website. 

Aprenda a resolver of other WordPress errors

How to fix the error “Brevemente no disponible para el mantenimiento programado” How to fix the lost programming error in WordPress How to fix mixed content in WordPress How to fix rotos enlaces in WordPress How to fix the 404 error in WordPress How to fix the white pantalla de la muerte in WordPress How to fix WordPress Resolver that no envía correos electrónicos How to solve the error of installation: the carpet of destiny ya exists Error

¿Fue útil este tutorial?

Whether

Nope

Author Author

The author

Domantas G.

Domantas leads content and SEO teams with fresh ideas and fresh approaches. Armed with extensive SEO and marketing knowledge, he aims to bring Hostinger to every corner of the world. In his spare time, Domantas enjoys honing his web development skills and traveling to exotic locations.

More Domantas G.


Video WordPress failed to write file to disk

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…