{"id":14220,"date":"2019-01-18T14:55:25","date_gmt":"2019-01-18T14:55:25","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=14220"},"modified":"2026-03-09T19:19:51","modified_gmt":"2026-03-09T19:19:51","slug":"how-to-fix-413-request-entity-too-large-error","status":"publish","type":"post","link":"\/ng\/tutorials\/how-to-fix-413-request-entity-too-large-error","title":{"rendered":"What is the 413 request entity too large Error, how to fix it and avoid it"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>The 413 Request Entity Too Large error means the server knows what the client is asking for but refuses to process the request because it&rsquo;s too big. This error message usually appears when uploading large files or submitting data-heavy forms.<\/p><p>If you can&rsquo;t break down large data into smaller parts to reduce its size before uploading, you&rsquo;ll have to increase the server&rsquo;s maximum upload size limit.<\/p><p>This article will explore different methods of adjusting the maximum file upload size in WordPress. We&rsquo;ll also provide tips to prevent the 413 Request Entity Too Large error.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-causes-413-request-entity-too-large-error\">What causes 413 Request Entity Too Large error<\/h2><p>Your web host will typically set a server limit to prevent slow performance or downtime when handling back end operations. These limits are usually sufficient for basic tasks like posting an article.<\/p><p>However, some website features might cause users to send larger amounts of data. If the requested resource or uploaded file exceeds the server&rsquo;s limit, the server will terminate the connection and return the 413 Request Entity Too Large error message.<\/p><p>Insufficient server resources are another common cause of this <a href=\"\/ng\/tutorials\/http-status-codes\">HTTP status code<\/a>, especially during high traffic. When too many users upload files to the server at the same time, all the requests overload the server.<\/p><p>Incorrect file permissions can trigger the error message by preventing the web server from accessing necessary files or directories. These restrictive permissions might hinder the server from processing large requests or uploads properly, causing the error.<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><tbody><tr><td><strong>Error code<\/strong><\/td><td>Content too large<\/td><\/tr><tr><td><strong>Error type<\/strong><\/td><td>Client error<\/td><\/tr><tr><td><strong>Error variations<\/strong><\/td><td>413 Request Entity Too Large<br>HTTP Error 413<br>413: Payload Too Large<\/td><\/tr><tr><td><strong>Error causes<\/strong><\/td><td>Large file uploads<br>Incorrect server configuration<br>Insufficient server resources<br>Incorrect file permissions<\/td><\/tr><\/tbody><\/table><\/figure><h2 class=\"wp-block-heading\" id=\"h-how-to-fix-413-request-entity-too-large-error-in-wordpress\">How to fix 413 Request Entity Too Large error in WordPress<\/h2><p>Now that you know what could trigger the 413 Request Entity Too Large error, let&rsquo;s explore four methods to troubleshoot it, starting with the simplest.<\/p><p>As some methods require modifying your WordPress files, remember to <a href=\"\/ng\/tutorials\/backup-wordpress\">back up your website<\/a>. Additionally, ensure you have administrator access to your web server and files.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-reset-file-permissions\">1. Reset file permissions<\/h3><p>If incorrect file permissions cause the HTTP error, resetting them should fix it.<\/p><p>Hostinger users can easily do so from <a href=\"\/ng\/support\/1583483-comprehensive-guide-to-hpanel-at-hostinger\/\">hPanel<\/a>. Navigate to <strong>Websites <\/strong>&rarr; <strong>Advanced <\/strong>&rarr; <strong>Fix File Ownership<\/strong>, check the box confirming you want to reset file permissions, and then hit <strong>Execute<\/strong>.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ed3507\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1418\" height=\"481\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-fix-file-ownership.png\/public\" alt=\"Fix File Ownership section in Hostinger hPanel\" class=\"wp-image-112964\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-fix-file-ownership.png\/w=1418,fit=scale-down 1418w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-fix-file-ownership.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-fix-file-ownership.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-fix-file-ownership.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-fix-file-ownership.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1418px) 100vw, 1418px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Fixing file ownership will reset permissions to the following values:<\/p><ul class=\"wp-block-list\">\n<li><strong>644 for files<\/strong> &#8210; the owner can read and write, while the group and others can only read.<\/li>\n\n\n\n<li><strong>755 for folders<\/strong> &#8210; the owner can read, write, and execute, while the group and others can only read and execute.<\/li>\n<\/ul><p>Alternatively, change your file permission settings using your hosting provider&rsquo;s <strong>File Manager<\/strong> or an <a href=\"\/ng\/tutorials\/ftp\/filezilla-ftp-configuration\">FTP client like FileZilla<\/a>.<\/p><p>Here&rsquo;s how to do it using Hostinger&rsquo;s File Manager:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>Websites <\/strong>&rarr; <strong>Dashboard <\/strong>and select <strong>File manager<\/strong>.<\/li>\n\n\n\n<li>Right-click on your root directory (<strong>public_html<\/strong>) and choose <strong>Permissions<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ed66a1\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1910\" height=\"766\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/public\" alt=\"Hostinger's File Manager, highlighting the option to change folder permissions\" class=\"wp-image-112965\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/w=1910,fit=scale-down 1910w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-permissions.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 1910px) 100vw, 1910px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Check all the boxes except the writing permission for the group and others. Selecting <strong>Recursive <\/strong>will set the same permissions for the content inside folders. Hit <strong>Update<\/strong>.<\/li>\n\n\n\n<li>Verify the permissions for the following files and folders within your root folder:<\/li>\n<\/ol><ul class=\"wp-block-list\">\n<li><strong>755 <\/strong>&#8210; <strong>wp-content<\/strong> folder and <strong>Uploads <\/strong>inside the former.<\/li>\n\n\n\n<li><strong>644 <\/strong>&#8210; all files within the root folder, especially configuration files like <strong>.htaccess<\/strong> and <strong>wp-config.php<\/strong>.<\/li>\n<\/ul><p>Check out our guide on <a href=\"\/ng\/tutorials\/vps\/change-linux-permissions-and-owners\">changing file permissions in Linux<\/a>.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-increase-the-php-upload-size-limit-via-hpanel\">2. Increase the PHP upload size limit via hPanel<\/h3><p>The second method to fix the 413 Request Entity Too Large error is to increase the <a href=\"\/ng\/tutorials\/php-maximum-upload-size\">PHP maximum upload file size limits<\/a>. They determine the largest file size that users can upload, the maximum data sent in a single request, and the memory usage allocated for handling large uploads.<\/p><p>The default limit varies by hosting provider but is often around 128 MB. Raising this limit allows your web server to handle larger file uploads, potentially resolving the 413 status code.<\/p><p>Hostinger users can modify maximum file upload size limits from hPanel. Here&rsquo;s how:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>Websites <\/strong>&rarr; <strong>Advanced <\/strong>&rarr; <strong>PHP Configuration<\/strong> from the hPanel dashboard.<\/li>\n\n\n\n<li>Open the <strong>PHP Options<\/strong> tab, containing your website&rsquo;s PHP configuration settings.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ed9960\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1424\" height=\"595\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-configuration-options.png\/public\" alt=\"PHP Configuration page in hPanel displaying the PHP options tab\" class=\"wp-image-112966\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-configuration-options.png\/w=1424,fit=scale-down 1424w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-configuration-options.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-configuration-options.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-configuration-options.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-configuration-options.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1424px) 100vw, 1424px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Scroll down to the <strong>memoryLimit<\/strong> field and increase the script&rsquo;s maximum memory usage. In this example, our <a href=\"\/ng\/cloud-hosting\">Cloud Professional hosting plan<\/a> offers up to 6144 MB.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1edc6e5\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1358\" height=\"181\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-memory-limit.png\/public\" alt=\"PHP memory limit in Hostinger's hPanel\" class=\"wp-image-112967\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-memory-limit.png\/w=1358,fit=scale-down 1358w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-memory-limit.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-memory-limit.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-memory-limit.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-memory-limit.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1358px) 100vw, 1358px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Next, locate the<strong> postMaxSize <\/strong>field and adjust the maximum size allowed for all requests, including file uploads. Ideally, the value should be smaller than the memory limit to ensure the server can handle multiple requests and tasks that need extra memory.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1edf3d8\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1368\" height=\"181\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-post-size.png\/public\" alt=\"PHP maximum POST size in Hostinger's hPanel\" class=\"wp-image-112968\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-post-size.png\/w=1368,fit=scale-down 1368w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-post-size.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-post-size.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-post-size.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-post-size.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1368px) 100vw, 1368px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>Finally, set the new maximum file upload size within the<strong> uploadMaxFilesize<\/strong> field. Make sure the value is lower than <strong>postMaxSize<\/strong> to avoid errors when uploading files.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ee1f92\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1363\" height=\"159\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-max-upload-file-size.png\/public\" alt=\"PHP maximum file upload size in Hostinger's hPanel\" class=\"wp-image-112969\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-max-upload-file-size.png\/w=1363,fit=scale-down 1363w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-max-upload-file-size.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-max-upload-file-size.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-max-upload-file-size.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-php-max-upload-file-size.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Hit <strong>Save <\/strong>to confirm the changes.<\/li>\n<\/ol><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-cloud-hosting\" href=\"\/ng\/cloud-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/Cloud-hosting-cta-banner.png\/public\" alt=\"\" class=\"wp-image-77904\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/Cloud-hosting-cta-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/Cloud-hosting-cta-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/Cloud-hosting-cta-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/Cloud-hosting-cta-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-3-modify-the-functions-php-file\">3. Modify the functions.php file<\/h3><p>Non-Hostinger users can increase the file upload size limit by modifying the <a href=\"\/ng\/tutorials\/functions-php-wordpress\">functions.php<\/a> file. This theme functions file defines a WordPress website&rsquo;s functionality with rules, so you can add new code to adjust the maximum request and file size limits.<\/p><p>Since the <strong>functions.php<\/strong> file resets after updates, make sure to modify the functions file within your child theme instead. If your theme doesn&rsquo;t have one, follow our guide on <a href=\"\/ng\/tutorials\/how-to-create-wordpress-child-theme\">creating a new WordPress child theme<\/a>.<\/p><p>Follow these steps to modify your theme&rsquo;s <strong>functions.php<\/strong> file using Hostinger&rsquo;s File Manager:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>Websites <\/strong>&rarr; <strong>Dashboard <\/strong>and select <strong>File manager<\/strong>.<\/li>\n\n\n\n<li>Open <strong>wp-content<\/strong> &rarr; <strong>themes <\/strong>within your root directory. Locate your child theme and double-click the <strong>functions.php<\/strong> file to edit it.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ee6b08\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1559\" height=\"623\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/public\" alt=\"WordPress theme folder in File Manager, highlighting the functions file\" class=\"wp-image-112970\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/w=1559,fit=scale-down 1559w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-functions.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 1559px) 100vw, 1559px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Find the lines containing <strong>upload_max_size<\/strong>, <strong>post_max_size<\/strong>, and <strong>max_execution_time<\/strong> parameters and increase their value. If you can&rsquo;t find these rules, add the following code snippet to the bottom of the file:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">@ini_set( 'upload_max_size' , '256M' );<br><br>@ini_set( 'post_max_size', '256M');<br><br>@ini_set( 'max_execution_time', '300' );<\/pre><p>Changing the maximum execution time (<strong>max_execution_time<\/strong>) doesn&rsquo;t directly resolve the 413 error. However, it can help in instances where large file uploads or data processing takes longer to complete, preventing timeout errors during these processes.<\/p><ol start=\"4\" class=\"wp-block-list\">\n<li>Save the changes and check whether your file uploads successfully. If the 413 Request Entity Too Large error code persists, increase the values slightly or try the next methods.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-4-modify-the-htaccess-file\">4. Modify the .htaccess file<\/h3><p>Another way to change the file upload size limit in WordPress is by editing the <strong>.htaccess<\/strong> file. This core WordPress file contains your web server&rsquo;s configurations, including authorization, caching, and optimization.<\/p><p>Here&rsquo;s how:<\/p><ol class=\"wp-block-list\">\n<li>Open your WordPress root directory using a File Manager or an FTP client.<\/li>\n\n\n\n<li>Double-click the <strong>.htaccess<\/strong> file to edit it. If you can&rsquo;t find it, check our guide for steps to <a href=\"\/ng\/tutorials\/locate-and-create-htaccess\">locate or create an .htaccess file<\/a>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ee9b6c\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1551\" height=\"663\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/public\" alt=\"Locating .htaccess in the root directory using Hostinger's File Manager\" class=\"wp-image-112971\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/w=1551,fit=scale-down 1551w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-filemanager-htaccess.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 1551px) 100vw, 1551px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"3\" class=\"wp-block-list\">\n<li>Add the following code snippet below the <strong># END WordPress<\/strong> line:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">php_value upload_max_filesize 256M<br><br>php_value post_max_size 256M<br><br>php_value max_execution_time 600<br><br>php_value max_input_time 600<\/pre><p>Like maximum execution time, changing the maximum time for parsing input data (<strong>max_input_time<\/strong>) helps ensure that long-running uploads and data processing tasks don&rsquo;t time out.<\/p><ol start=\"4\" class=\"wp-block-list\">\n<li>Save the changes and check whether it fixes the error.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-5-modify-nginx-configuration\">5. Modify NGINX configuration<\/h3><p>Modifying the web server configuration also works for troubleshooting WordPress sites hosted on <a href=\"\/ng\/vps-hosting\">virtual private servers<\/a>.<\/p><p>The file upload size limit varies depending on the web server software used. In <a href=\"\/ng\/tutorials\/what-is-nginx\">NGINX<\/a> servers, the <strong>client_max_body_size<\/strong> setting controls the maximum file upload size. To increase this limit, access the <strong>nginx.conf<\/strong> file via an <a href=\"\/ng\/tutorials\/how-to-use-putty-ssh\">SSH client like PuTTY<\/a> or Terminal and edit the server settings using a text editor like Vi. Hostinger users can find their login credentials in the SSH access tab in the VPS overview menu.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1eec942\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1421\" height=\"601\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-vps-overview.png\/public\" alt=\"VPS overview in Hostinger's hPanel, showing SSH access details\" class=\"wp-image-112972\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-vps-overview.png\/w=1421,fit=scale-down 1421w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-vps-overview.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-vps-overview.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-vps-overview.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-vps-overview.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1421px) 100vw, 1421px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Follow these steps to change your NGINX server configuration for troubleshooting the 413 error code:<\/p><ol class=\"wp-block-list\">\n<li>Once connected to your VPS, enter the following command in your Terminal to open the configuration file using Vi:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">vi \/etc\/nginx\/nginx.conf<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Enter these lines to change the maximum request body size that the server allows. We will set it to 8 MB as an example, so make sure to adjust it as needed:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\"># set client body size to 8M<br><br># client_max_body_size 8M;<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Save and close the file by entering <strong>:wq<\/strong> and hitting <strong>Enter<\/strong>. Return to the main Terminal interface and restart NGINX to apply the changes by entering the following command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">nginx -s reload<\/pre><p>For websites hosted on an <a href=\"\/ng\/tutorials\/what-is-apache\">Apache<\/a> server, follow the same steps to modify the <strong>LimitRequestBody<\/strong> parameter&rsquo;s value in the <strong>httpd.conf<\/strong> file.<\/p><p>Try reuploading files to your website to check if the 413 error is resolved.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ng\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/public\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-how-to-avoid-413-request-entity-too-large-error\">How to avoid 413 Request Entity Too Large error<\/h2><p>Even if it seems harmless, the 413 Request Entity Too Large error can hurt the user experience by interrupting file uploads and form submissions. After troubleshooting the error code, take these measures to prevent it from happening again.<\/p><p><strong>Optimize file sizes<\/strong><\/p><p>Compressing large files like images and videos before uploading them helps reduce the chances of exceeding the server&rsquo;s size limits and triggering the error.<\/p><p>Common <a href=\"\/ng\/tutorials\/complete-guide-to-image-optimization\">image optimization techniques<\/a> like lossy and lossless compression let you reduce file sizes for faster web performance. Install image optimization plugins like <strong>WP Smush<\/strong> to automate compression.<\/p><p>Meanwhile, tools like <strong>HandBrake<\/strong> and <strong>DaVinci Resolve<\/strong> can help with <a href=\"\/ng\/tutorials\/how-to-compress-videos-without-losing-quality\">video compression without compromising quality<\/a>.<\/p><p><strong>Audit server settings regularly<\/strong><\/p><p>When you add a new function that sends large requests, adjust your server&rsquo;s configuration settings to ensure they can handle them. Better yet, always test new features in a <a href=\"\/ng\/tutorials\/wordpress-staging-environment\">WordPress staging environment<\/a> to avoid errors affecting your live website.<\/p><p>Hostinger users on <strong>WordPress Business<\/strong> and cloud hosting plans can quickly set up a staging website from the hosting control panel. Go to <strong>Websites <\/strong>&rarr; <strong>WordPress <\/strong>&rarr; <strong>Staging <\/strong>and select <strong>Create staging<\/strong>. The process takes several minutes to complete and doesn&rsquo;t require coding.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1ef0bf1\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1425\" height=\"593\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-staging.png\/public\" alt=\"Hostinger's staging tool in hPanel\" class=\"wp-image-112973\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-staging.png\/w=1425,fit=scale-down 1425w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-staging.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-staging.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-staging.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-staging.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1425px) 100vw, 1425px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/ng\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/public\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><p><strong>Enable chunked uploads<\/strong><\/p><p>Chunked uploading breaks a file into smaller parts, helping the server manage large files better and avoid the maximum request size limit. This method also enhances the reliability of your upload process.<\/p><p>The easiest way to enable this feature is by installing a WordPress file upload plugin like <strong>Big File Uploads<\/strong>. If you know how to code, integrating the <strong>FileReader API<\/strong> and a <strong>JavaScript <\/strong>library into your WordPress site offers more flexibility in configuring the settings.<\/p><p><strong>Use a <\/strong><a href=\"\/ng\/tutorials\/what-is-cdn\"><strong>Content Delivery Network (CDN)<\/strong><\/a><\/p><p>A CDN offloads traffic by caching and serving content from servers around the world. Caching stores copies of your site&rsquo;s files closer to users, reducing server load and minimizing errors related to large requests. It also improves your <a href=\"\/ng\/tutorials\/website-performance\">website&rsquo;s performance<\/a> by reducing page load times.<\/p><p>Our <strong>WordPress Business<\/strong> hosting plans and above include a free CDN. The tool also comes with website optimization features, such as WebP image compression and CSS and JavaScript file minification. Head to <strong>Websites <\/strong>&rarr; <strong>Performance <\/strong>&rarr; <strong>CDN <\/strong>to check its status.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1ea1f01337\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1426\" height=\"322\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-cdn.png\/public\" alt=\"CDN settings in Hostinger's hPanel\" class=\"wp-image-112974\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-cdn.png\/w=1426,fit=scale-down 1426w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-cdn.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-cdn.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-cdn.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/hpanel-cdn.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1426px) 100vw, 1426px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>413 Request Entity Too Large is an error that occurs when the client sends a request larger than the web server&rsquo;s file upload limit. If left unresolved, it can hurt user experience and even search engine rankings over time.<\/p><p>Let&rsquo;s recap the five effective methods to fix this error code in WordPress:<\/p><ul class=\"wp-block-list\">\n<li>Reset file permissions.<\/li>\n\n\n\n<li>Increase the PHP upload size limit via hPanel.<\/li>\n\n\n\n<li>Modify the <strong>functions.php<\/strong> file.<\/li>\n\n\n\n<li>Add new rules to the <strong>.htaccess<\/strong> file.<\/li>\n\n\n\n<li>Adjust the NGINX configuration.<\/li>\n<\/ul><p>We hope this article can help you troubleshoot the 413 error and prevent it from happening again. If you have any questions, check out the FAQ section or drop a comment below.<\/p><h2 class=\"wp-block-heading\" id=\"h-413-request-entity-too-large-faq\">413 Request Entity Too Large FAQ<\/h2><p>This section covers some of the most common questions about the 413 Request Entity Too Large error.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1721045119731\"><h3 class=\"schema-faq-question\">What are the causes of 413 Request Entity Too Large error?<\/h3> <p class=\"schema-faq-answer\">Uploading files or sending data that exceed the server&rsquo;s upload size limits causes the 413 Request Entity Too Large error. Incorrect file permissions, insufficient server resources, or incorrect server configuration can also trigger this HTTP error code.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1721045133012\"><h3 class=\"schema-faq-question\">Is there a file size limit that triggers the 413 Request Entity Too Large error?<\/h3> <p class=\"schema-faq-answer\">Yes, the 413 Request Entity Too Large error occurs when a file or request exceeds the server&rsquo;s size limit. The maximum file upload size limit varies depending on the web host but is usually around 128 MB by default.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1721045165245\"><h3 class=\"schema-faq-question\">Do I have to reduce my file size to avoid 413 Request Entity Too Large error?<\/h3> <p class=\"schema-faq-answer\">That&rsquo;s not always the case, as you can raise the server&rsquo;s maximum file upload size limits instead. However, reducing file size is another effective way to avoid the 413 Request Entity Too Large error.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>The 413 Request Entity Too Large error means the server knows what the client is asking for but refuses to process the request because it&rsquo;s too big. This error message usually appears when uploading large files or submitting data-heavy forms. If you can&rsquo;t break down large data into smaller parts to reduce its size before [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/how-to-fix-413-request-entity-too-large-error\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"What Is 413 Request Entity Too Large and How to Fix It?","rank_math_description":"A 413 error occurs when a client's request size surpasses the server's limit. Learn more about how to fix it in this article.","rank_math_focus_keyword":"413 request entity too large","footnotes":""},"categories":[22630],"tags":[],"class_list":["post-14220","post","type-post","status-publish","format-standard","hentry","category-technical-aspects"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-corrigir-erro-413","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/413-request-entity-too-large","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/solucionar-error-413-request-entity-too-large","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/413-request-entity-too-large","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/413-request-entity","default":0},{"locale":"ko-KR","link":"https:\/\/www.hostinger.com\/kr\/tutorials\/413-request-entity-too-large-error","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/wordpress-es-gratis-9","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/solucionar-error-413-request-entity-too-large\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-crear-un-slider-wordpress-5\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-corrigir-erro-413","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-fix-413-request-entity-too-large-error","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/14220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=14220"}],"version-history":[{"count":60,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/14220\/revisions"}],"predecessor-version":[{"id":145205,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/14220\/revisions\/145205"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=14220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=14220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=14220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}