{"id":8078,"date":"2019-11-27T08:26:30","date_gmt":"2019-11-27T08:26:30","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=8078"},"modified":"2025-05-18T07:25:31","modified_gmt":"2025-05-18T07:25:31","slug":"fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","status":"publish","type":"post","link":"\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress\/","title":{"rendered":"Upload_max_filesize Error: how to fix the file size limit in WordPress"},"content":{"rendered":"<p>The<strong> &ldquo;the uploaded file exceeds the upload_max_filesize directive in php.ini&rdquo; <\/strong>error happens when you try to upload a file larger than the maximum file size set in your server&rsquo;s php.ini file. To fix it, you need to increase the <code>upload_max_filesize<\/code> value using one of the following: the <code>.htaccess<\/code> file, <code>wp-config.php<\/code>, or by editing the <code>php.ini<\/code> file directly.<\/p><p>As scary as this error may seem, the solutions are pretty straightforward. In this tutorial, you will learn how to debug this WordPress error by increasing the default limit of <strong>upload_max_filesize <\/strong>through a few methods.<\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-fix-the-upload-max-filesize-error\">How to Fix the upload_max_filesize Error<\/h2><p>The solution, as you might have guessed, involves increasing the default limit of <strong>upload_max_filesize<\/strong>. Let&rsquo;s dive into it and see what steps we can take to fix this WordPress error.<\/p><h3 class=\"wp-block-heading\" id=\"h-method-1-editing-the-htaccess-file\">Method 1. Editing the .htaccess File<\/h3><p>The quickest fix for<strong> the uploaded file exceeds the upload_max_filesize directive in php.ini&nbsp;<\/strong>error is increasing your PHP resource limits by tweaking the <strong>.htaccess<\/strong> file. Here&rsquo;s how to do it:<\/p><ol class=\"wp-block-list\">\n<li>Login to hPanel and navigate to <strong>File Manager<\/strong> in the <strong>Dashboard <\/strong>section.<\/li>\n<\/ol><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\"><img decoding=\"async\" width=\"1024\" height=\"627\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"hPanel dashboard, File manager highlighted\" class=\"wp-image-83743\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/04\/hpanel-dashboard-filemanager-highlighted.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>2. <span style=\"font-size: revert;color: initial;, sans-serif\">Locate the <\/span><strong style=\"font-size: revert;color: initial;, sans-serif\">.htaccess<\/strong><span style=\"font-size: revert;color: initial;, sans-serif\"> file inside the <strong>public_html<\/strong> directory and right-click to <\/span><strong style=\"font-size: revert;color: initial;, sans-serif\">Edit<\/strong><span style=\"font-size: revert;color: initial;, sans-serif\">.<\/span><\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-filemanager-publichtml-htaccess-editbuttonselected.png\"><img decoding=\"async\" width=\"1024\" height=\"414\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-filemanager-publichtml-htaccess-editbuttonselected.png\/w=1024,h=1024,fit=scale-down\" alt='File Manager with the .htaccess file selected via right-click and the \"Edit\" option highlighted.' class=\"wp-image-80782\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-filemanager-publichtml-htaccess-editbuttonselected.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-filemanager-publichtml-htaccess-editbuttonselected.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-filemanager-publichtml-htaccess-editbuttonselected.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-filemanager-publichtml-htaccess-editbuttonselected.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p>3. <span style=\"font-size: revert;color: initial;, sans-serif\">Add the following line at the bottom of the file:<\/span><\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php_value upload_max_filesize 256M<\/pre><p>Then <strong>Save<\/strong> the changes. <\/p><p>That&rsquo;s it! Increasing the <strong>upload_max_filesize&nbsp;<\/strong>value should automatically fix the error.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Pro Tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> Adjust the PHP limits to any desired values as long as your web hosting providers support it. You can also locate the maximum available limits by checking the <a href=\"\/tutorials\/how-to-create-phpinfo-file\/\">PHP info<\/a> of your website. <\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-method-2-editing-the-wp-config-php-file\">Method 2. Editing the wp-config.php File<\/h3><p>Another way to get rid of the uploaded file exceeding the <strong>upload_max_filesize directive in php.ini error<\/strong> is by tweaking the <a href=\"\/tutorials\/wp-config-php\/\"><strong>wp-config.php<\/strong> file<\/a> located in your root directory.<\/p><p>All you need to do is log in to the hPanel and access <strong>public_html <\/strong>to edit the <strong>wp_config.php <\/strong>file. Add the following line before the &ldquo;That&rsquo;s all, stop editing! Happy publishing&rdquo; line:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@ini_set('upload_max_size' , '256M' );<\/pre><p>Now <strong>Save<\/strong> the file, refresh your web browser, and try uploading again!<\/p><h3 class=\"wp-block-heading\" id=\"h-method-3-updating-php-ini-to-fix-the-upload-max-filesize-error\">Method 3. Updating php.ini to Fix the upload_max_filesize Error<\/h3><p>If you look closer at the <strong>uploaded file exceeds the upload_max_filesize directive in php.ini<\/strong> error message, we can safely assume that it has something to do with <strong>php.ini,<\/strong> a file that holds all of the PHP related variables.<\/p><p>If you&rsquo;re using shared web hosting by Hostinger, including <a href=\"\/wordpress-hosting\">WordPress site hosting<\/a>, all limits are already at the maximum value for user convenience. As a result, it&rsquo;s not possible to alter <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583191-how-can-i-change-the-php-ini-file?utm_content=article_1583191\" target=\"_blank\" rel=\"noopener\">php.ini<\/a>.<\/p><p>However, you can always modify your PHP settings through the <strong>PHP Configuration<\/strong> tool on hPanel if you wish.<\/p><p>If you&rsquo;re using VPS or a different platform, you can try updating<strong> php.ini<\/strong> to fix the error. Here&rsquo;s what you need to do:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to your <strong>php.ini <\/strong>file and edit it. If you can&rsquo;t find it, ask for assistance from your hosting providers.<\/li>\n\n\n\n<li>Locate the upload_max_filesize and increase it by changing its number. You can also boost a few other limitations, as shown below: <br><code>upload_max_filesize = 256M <br>post_max_size = 256M <br>memory_limit = 512M <br>max_execution_time = 180 <\/code><\/li>\n\n\n\n<li>Save the file, and that&rsquo;s it. The error should no longer occur.<\/li>\n<\/ol><h3 class=\"wp-block-heading\" id=\"h-method-4-making-changes-to-php-configurations-on-hpanel\">Method 4. Making Changes to PHP Configurations on hPanel<\/h3><p>For Hostinger clients, modifying PHP configurations can&rsquo;t get any easier. Hostinger offers a custom-built tool to edit and adjust the PHP settings of your hosting account.<\/p><p>Log in to hPanel and head to <strong>PHP Configuration<\/strong> under <strong>Advanced<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-1.png\"><img decoding=\"async\" width=\"398\" height=\"316\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-1.png\/public\" alt=\"hPanel's Advanced menu with PHP Configuration being highlighted. \" class=\"wp-image-80722\" style=\"width:398px;height:316px\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-1.png\/w=398,fit=scale-down 398w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-1.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><\/figure>\n<\/div><p>Then, switch to the <strong>PHP Options<\/strong> menu and scroll down to find<strong> uploadMaxFilesize<\/strong> row and make changes as needed.<\/p><figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\"><img decoding=\"async\" width=\"1334\" height=\"287\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\/w=1024,h=1024,fit=scale-down\" alt=\"uploadMaxFilesize option from the PHP Option settings on hPanel.\" class=\"wp-image-80798\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\/w=1334,fit=scale-down 1334w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-phpconfiguration-phpoption-uploadmaxfilesize.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1334px) 100vw, 1334px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-method-5-contacting-customer-support-to-fix-the-upload-max-filesize-error\">Method 5. Contacting Customer Support to Fix the upload_max_filesize Error<\/h3><p>If none of the options above fixed the error, try contacting your web hosting support team.<\/p><p>Explain the situation and let them know what steps you took to fix the WordPress error, and hopefully, they&rsquo;ll resolve the problem for you.<\/p><p>If you&rsquo;re a Hostinger client, our customer success agents are ready to help you out <strong>24\/7<\/strong> through our live chat feature. Log in to the hPanel and access the chat feature at the bottom right of your dashboard.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-wordpress-hosting\" href=\"\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img 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\/w=1024,h=1024,fit=scale-down\" 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=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>In this tutorial, you have learned five different ways to fix the<strong> uploaded file exceeds the upload_max_filesize directive in php.ini<\/strong> error in WordPress. Here&rsquo;s a quick recap:<\/p><ul class=\"wp-block-list\">\n<li>Increasing upload_max_filesize and other PHP values through the <strong>.htaccess<\/strong> file<\/li>\n\n\n\n<li>Setting higher upload_max_filesize through the <strong>wp-config.php<\/strong> file<\/li>\n\n\n\n<li>Editing<strong> php.ini<\/strong> file to increase upload_max_filesize<\/li>\n\n\n\n<li>Editing and adjusting PHP configurations through the <strong>PHP Configuration<\/strong> feature on hPanel<\/li>\n\n\n\n<li>Contacting your hosting providers for assistance<\/li>\n<\/ul><p>Easy, right? If you have any questions or suggestions, don&rsquo;t hesitate to comment down below! Or if you want to learn general ways to fix common errors, read our guide to <a href=\"\/tutorials\/debug-wordpress\/\">debug WordPress<\/a>.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Learn How to Solve Other WordPress Errors                <\/p>\n            <\/div>\n            <p class=\"protip__content\"> <a href=\"\/tutorials\/fix-wordpress-briefly-unavailable-for-scheduled-maintenance\/\">How to Fix \"Briefly Unavailable for Scheduled Maintenance\" Error<\/a><br>\n<a href=\"\/tutorials\/how-to-fix-wordpress-missed-schedule\/\">How to Fix Missed Schedule Error in WordPress<\/a><br>\n<a href=\"\/tutorials\/fix-mixed-content-wordpress\/\">How to Fix Mixed Content on WordPress<\/a><br>\n<a href=\"\/tutorials\/find-fix-broken-links-wordpress\/\">How to Fix Broken Links on WordPress<\/a><br>\n<a href=\"\/tutorials\/how-to-fix-error-404\/\">How to Solve 404 WordPress Error<\/a><br>\n<a href=\"\/tutorials\/wordpress-not-sending-email\/\">How to Solve WordPress Not Sending Emails<\/a><\/p>\n                    <\/div>\n        \n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &ldquo;the uploaded file exceeds the upload_max_filesize directive in php.ini&rdquo; error happens when you try to upload a file larger [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Fix the upload_max_filesize Error in WordPress","rank_math_description":"Running into the uploaded file exceeds the upload_max_filesize directive in php.ini error? Read and learn how to fix it easily here!","rank_math_focus_keyword":"the uploaded file exceeds the upload_max_filesize directive in php.ini","footnotes":""},"categories":[22640,22637],"tags":[],"class_list":["post-8078","post","type-post","status-publish","format-standard","hentry","category-security-and-maintenance","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/corrigir-erro-o-arquivo-ultrapassa-o-limite-definido-em-upload-max-filesize-no-phpini","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/solucionar-el-error-el-archivo-subido-excede-la-directiva-upload-max-filesize-en-php-ini-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-mengatasi-upload_max_filesize","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/solucionar-el-error-el-archivo-subido-excede-la-directiva-upload-max-filesize-en-php-ini-wordpress","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/solucionar-el-error-el-archivo-subido-excede-la-directiva-upload-max-filesize-en-php-ini-wordpress","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-solucionar-el-error-upload_max_filesize-en-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/corrigir-erro-o-arquivo-ultrapassa-o-limite-definido-em-upload-max-filesize-no-phpini","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/8078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=8078"}],"version-history":[{"count":62,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/8078\/revisions"}],"predecessor-version":[{"id":128340,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/8078\/revisions\/128340"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=8078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=8078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=8078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}