{"id":13702,"date":"2019-09-15T13:02:19","date_gmt":"2019-09-15T10:02:19","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/%d8%a5%d8%b5%d9%84%d8%a7%d8%ad-%d8%ae%d8%b7%d8%a3-upload-failed-to-write-file-to-disk-%d9%81%d9%8a-%d9%88%d9%88%d8%b1%d8%af%d8%a8%d8%b1%d9%8a%d8%b3\/"},"modified":"2022-04-24T11:16:32","modified_gmt":"2022-04-24T08:16:32","password":"","slug":"fix-upload-failed-to-write-file-to-disk-error-in-wordpress","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/fix-upload-failed-to-write-file-to-disk-error-in-wordpress\/","title":{"rendered":"Fix \u201cUpload: Failed to Write File to Disk\u201d Error in WordPress"},"content":{"rendered":"<h3 class=\"g1-mega g1-mega-1st entry-title\"><span style=\"color: #ff0000;\">Fix \u201cUpload: Failed to Write File to Disk\u201d Error in WordPress<\/span><\/h3>\n<p>Do you see the message \u201cUpload: Failed to Write File to Disk\u201d when uploading files in WordPress?<\/p>\n<p>This common error can be very frustrating for novice users.<\/p>\n<p>In this article, we will show you how to fix the \u201cUpload: Failed to Write File to Disk\u201d error in WordPress.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #ff0000;\">What are the causes of the Upload: Failed to Write File to Disk message in WordPress?<\/span><\/h4>\n<p>This error can occur due to a number of reasons. However, the most common is incorrect folder permissions.<\/p>\n<p>Every file and folder on your website has a set of permissions. The web server controls access to files based on these permissions.<\/p>\n<p>Incorrect permissions to a folder can remove your ability to write files to the server. This means that your web server cannot create or add new files to this particular folder.<\/p>\n<p>If you try to upload images or any other files from your WordPress admin area, you will get one of the following error messages:<\/p>\n<ul>\n<li>WordPress failed to write to disk<\/li>\n<li>WordPress has failed to upload due to an error failed to write file to disk<\/li>\n<li>Unable to create directory wp-content\/uploads\/2016\/03. Is its parent directory writable by the server\u061f<\/li>\n<\/ul>\n<h3><span style=\"color: #ff0000;\">Fix Upload: Failed to Write File to Disk Message in WordPress<\/span><\/h3>\n<p>First, you need to connect to the WordPress site using an FTP client.<\/p>\n<p>In this tutorial, we use a client\u00a0 <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">FTP FileZilla<\/a> free. If you use some other FTP software, it might look a little different<\/p>\n<p><strong>How are files uploaded via ftp?<\/strong><\/p>\n<p>Once you are connected, you need to right-click on the <strong>wp-content<\/strong> folder and select File Permissions.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-10432\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/file-permission.jpg\" alt=\"\u0625\u0635\u0644\u0627\u062d \u062e\u0637\u0623 \u201d Upload: Failed to Write File to Disk \u201d \u0641\u064a \u0648\u0648\u0631\u062f\u0628\u0631\u064a\u0633\" width=\"398\" height=\"245\" title=\"\" srcset=\"https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/file-permission.jpg 505w, https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/file-permission-300x185.jpg 300w\" sizes=\"(max-width: 398px) 100vw, 398px\"><\/p>\n<p>This will bring up the File Permissions dialog in the FTP program. It will show you the file&#8217;s permissions for owner, group, and audience.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-10433 size-full\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/file-permission1.jpg\" alt=\"\u0625\u0635\u0644\u0627\u062d \u062e\u0637\u0623 \u201d Upload: Failed to Write File to Disk \u201d \u0641\u064a \u0648\u0648\u0631\u062f\u0628\u0631\u064a\u0633\" width=\"346\" height=\"322\" title=\"\" srcset=\"https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/file-permission1.jpg 346w, https:\/\/www.hyyat.com\/zasogooh\/2019\/09\/file-permission1-300x279.jpg 300w\" sizes=\"(max-width: 346px) 100vw, 346px\"><\/p>\n<p>755 must be entered in the numeric value field.<\/p>\n<p>Next, you need to check the box next to \u201cRecurse into subdirectories\u201d.<\/p>\n<p>Finally, you should click on the \u201cApply to directories only\u201d option.<\/p>\n<p>Click on the OK button to continue.<\/p>\n<p>FTP will now set folder permissions to 755 and apply them to all subfolders within <strong>wp-content<\/strong>.<\/p>\n<p>This includes the Uploads folder where all your photos are stored.<\/p>\n<p>You also need to make sure that the file permissions are correct for individual files in your <strong>wp-content<\/strong> folder.<\/p>\n<p>Again, right-click on the <strong>wp-content<\/strong> folder and select File Permissions. This time we will change the file permissions.<\/p>\n<p>Enter 644 in the numeric value, then check the box next to \u201cRecurse into subdirectories.\u201d<\/p>\n<p>Finally, you should click on the \u201cApply to files only\u201d option.<\/p>\n<p>Click on the OK button to continue. FTP will now set file permissions to 644 for all files in the <strong>wp-content<\/strong> folder.<\/p>\n<p>You can now visit the WordPress site and try to upload the files.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>The explanation of fixing the \u201cUpload: Failed to Write File to Disk\u201d error in WordPress has been completed<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #993366;\">Greetings from the<a href=\"https:\/\/www.hyyat.com\/en\" target=\"_blank\" rel=\"noopener\"> Hyyat Host<\/a> team for hosting and web design<\/span><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>Fix \u201cUpload: Failed to Write File to Disk\u201d Error in WordPress Do you see the message \u201cUpload: Failed to Write File to Disk\u201d when uploading files in WordPress? This common error can be very frustrating for novice users. In this article, we will show you how to fix the \u201cUpload: Failed to Write File to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"doc_category":[2747],"doc_tag":[2768],"class_list":["post-13702","docs","type-docs","status-publish","hentry","doc_category-wordpress-explanations","doc_tag-error-en"],"year_month":"2026-05","word_count":491,"total_views":"4519","reactions":{"happy":"1","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"WordPress explanations","term_url":"https:\/\/www.hyyat.com\/en\/kb\/wordpress-explanations\/"}],"doc_tag_info":[{"term_name":"Error","term_url":"https:\/\/www.hyyat.com\/en\/docs-tag\/error-en\/"}],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=13702"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13702\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=13702"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=13702"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=13702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}