{"id":18396,"date":"2026-09-29T23:17:31","date_gmt":"2026-09-29T20:17:31","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/fix-wordpress-image-upload\/"},"modified":"2026-11-22T21:24:48","modified_gmt":"2026-11-22T18:24:48","password":"","slug":"fix-wordpress-image-upload","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/fix-wordpress-image-upload\/","title":{"rendered":"WordPress Image Upload Problems: HTTP Error, Broken Images, Size Limits and uploads Folder Permissions"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b>Start with the message. <b>exceeds the maximum upload size<\/b>: the file is over the limit, so shrink it or raise the limit. <b>HTTP error<\/b> or <b>Unable to create directory<\/b>: usually <code>wp-content\/uploads<\/code> permissions, so set folders to 755 and files to 644. If images upload but show broken, check permissions and the site address in Settings.<\/div>\n<div class=\"hy-vid\"><div style=\"width: 1280px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-18396-1\" width=\"1280\" height=\"720\" poster=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-upload-en.jpg\" preload=\"none\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-upload-en.mp4?_=1\" \/><a href=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-upload-en.mp4\">https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hyyat-w2-upload-en.mp4<\/a><\/video><\/div><\/div>\n<p>Image uploads are one of the first things to break after a migration or a settings change. The good news is that the error message usually tells you why.<\/p>\n<h2>Diagnose it in a minute<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th>What you see<\/th>\n<th>Likely cause<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>exceeds the maximum upload size for this site<\/code><\/td>\n<td>The file is bigger than the upload limit<\/td>\n<td>Shrink the image, or raise <code>upload_max_filesize<\/code> in PHP settings<\/td>\n<\/tr>\n<tr>\n<td><code>HTTP error<\/code> while uploading<\/td>\n<td>PHP memory, huge image dimensions, or a dropped connection<\/td>\n<td>Reduce the dimensions, retry, and check memory<\/td>\n<\/tr>\n<tr>\n<td><code>Unable to create directory wp-content\/uploads\/...<\/code><\/td>\n<td>uploads folder permissions<\/td>\n<td>Folders 755, files 644<\/td>\n<\/tr>\n<tr>\n<td>The image uploads but shows broken<\/td>\n<td>File permissions, or a wrong site address after moving<\/td>\n<td>Check permissions and Site Address<\/td>\n<\/tr>\n<tr>\n<td><code>Sorry, you are not allowed to upload this file type<\/code><\/td>\n<td>A format WordPress does not accept<\/td>\n<td>Use JPG, PNG or WebP<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Find the current upload limit<\/h2>\n<p>Open <b>Media \u203a Add Media File<\/b>. Under the upload box WordPress shows <b>Maximum upload file size<\/b>.<\/p>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-w2-p-media-new.webp\" alt=\"The WordPress Upload Media screen with the maximum upload size\" width=\"1200\" height=\"420\" loading=\"lazy\" \/><\/figure>\n<p>To raise it, change <code>upload_max_filesize<\/code> and <code>post_max_size<\/code> in cPanel: <b>Select PHP Version \u203a Options<\/b> or <b>MultiPHP INI Editor<\/b>, whichever your account shows.<\/p>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-w2-c-selector-en.webp\" alt=\"The PHP Selector in cPanel for PHP settings\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<h2>Fixing uploads folder permissions<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Open File Manager<\/b> then <code>public_html\/wp-content<\/code>.<\/li>\n<li><b>The uploads folder<\/b> select it and click <b>Permissions<\/b>: set it to <b>755<\/b>.<\/li>\n<li><b>Folders inside it<\/b> each year and month folder: 755 as well.<\/li>\n<li><b>Files<\/b> the images themselves: <b>644<\/b>.<\/li>\n<\/ol>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-w2-c-perms-en.webp\" alt=\"The Change Permissions window in cPanel File Manager\" width=\"800\" height=\"451\" loading=\"lazy\" \/><\/figure>\n<p>Changing thousands of files one by one is tiring. If you have SSH, the commands in the card do it at once, or ask us to set them for you.<\/p>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/11\/hkb-w2-t-perms.webp\" alt=\"Commands to set wp-content\/uploads to 755 for folders and 644 for files\" width=\"1100\" height=\"620\" loading=\"lazy\" \/><\/figure>\n<div class=\"hkb-note warn\"><b>Do not use 777.<\/b> Some articles recommend it because it \u201cfixes the problem\u201d. It lets any process on the server write to the folder, and our servers may refuse to run files with that permission at all.<\/div>\n<h2>Very large images<\/h2>\n<p>A phone photo can have huge dimensions, so WordPress needs a lot of memory to create its thumbnails and the upload fails with HTTP error. Resize images to around 2000 px wide before uploading. If it keeps happening with normal images: <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/fix-wordpress-memory-exhausted-error\/\">raise PHP memory<\/a>.<\/p>\n<div class=\"hkb-note\"><b>From our support desk:<\/b> After a migration from another host, the most common cause we see is files moved with the wrong owner or permissions. If the problem started after moving, tell us and we fix it on the server.<\/div>\n<div class=\"hkb-note\"><b>Contact us if<\/b><\/p>\n<ul class=\"hkb-list\">\n<li>Your disk space is full or nearly full<\/li>\n<li>The problem started after moving your site to us<\/li>\n<\/ul>\n<p>Open <a href=\"https:\/\/hyyatdomain.com\/submitticket.php\" target=\"_blank\" rel=\"noopener\">a support ticket<\/a> with your site address and the exact error.<\/div>\n<div class=\"hkb-note\">Running WordPress? See <a href=\"https:\/\/www.hyyat.com\/en\/wordpress-hosting\/\">Hyyat Host WordPress hosting<\/a>.<\/div>\n<h2>Questions we get<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>How high should the upload limit be?<\/summary>\n<p>Enough for your real files. For images a few megabytes is usually plenty; upload very large files over FTP.<\/p>\n<\/details>\n<details>\n<summary>Should I upload PNG, JPG or WebP?<\/summary>\n<p>WebP is lighter at good quality and WordPress accepts it. JPG for photos, PNG for graphics and logos.<\/p>\n<\/details>\n<details>\n<summary>Images do not show after moving the site<\/summary>\n<p>Check the site address in Settings \u203a General and make sure the whole uploads folder was copied.<\/p>\n<\/details>\n<details>\n<summary>I get Failed to write file to disk<\/summary>\n<p>That has its own guide: <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/fix-upload-failed-to-write-file-to-disk-error-in-wordpress\/\">fixing Failed to Write File to Disk<\/a>.<\/p>\n<\/details>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortStart with the message. exceeds the maximum upload size: the file is over the limit, so shrink it or raise the limit. HTTP error or Unable to create directory: usually wp-content\/uploads permissions, so set folders to 755 and files to 644. If images upload but show broken, check permissions and the site address in [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":21552,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2747],"doc_tag":[],"class_list":["post-18396","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-wordpress-explanations"],"year_month":"2026-11","word_count":564,"total_views":"2","reactions":{"happy":"0","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 Guides","term_url":"https:\/\/www.hyyat.com\/en\/kb\/wordpress-explanations\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18396","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=18396"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18396\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/21552"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18396"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18396"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}