{"id":3642,"date":"2023-09-03T15:06:00","date_gmt":"2023-09-03T09:36:00","guid":{"rendered":"https:\/\/www.wpoven.com\/blog\/?p=3642"},"modified":"2023-10-31T16:25:54","modified_gmt":"2023-10-31T10:55:54","slug":"how-to-fix-the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-error","status":"publish","type":"post","link":"https:\/\/www.wpoven.com\/blog\/how-to-fix-the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-error\/","title":{"rendered":"How to fix &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; Error?"},"content":{"rendered":"\n<p class=\"justify\">WordPress is the best content management system for building websites of almost any type and complexity. It does not require a deep knowledge of coding, so, it is the best choice for everyone. You can install WordPress manually or, depending on your web host, can also install it in one click. While uploading the files into WordPress, you may face the &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; error.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_7a80dddc-d538-46cd-a77f-684b50229cfa\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_cdb45dcd-19de-4acc-98e2-27864a7a3817\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<p class=\"justify\">At WPOven you can install a WordPress site to your server in a matter of seconds and easily manage it from our dashboard. Moreover, it is very customizable: you can easily change the interface or add new functionality just by installing new themes or plugins. <\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_7ac72a87-6a8c-44dc-8bea-7f07b8be5a88\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div class=\"wp-block-group fre-pros-box is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h2 class=\"wp-block-heading myh2\" id=\"How to fix the uploaded file exceeds the upload_max_filesize directive in php ini ?\">How do we fix &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; Error?<\/h2>\n\n\n\n<figure class=\"wp-block-image imgsha round\"><img decoding=\"async\" src=\"https:\/\/cdn.discordapp.com\/attachments\/821963720225718294\/1046668056987963452\/fixes_of_upload_max_filesize.png\" alt=\"How to fix the uploaded file exceeds the upload_max_filesize directive in php.ini Error\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>Fixes of the uploaded file exceed the upload_max_filesize directive in php.ini Error<\/sup><\/em><\/figcaption><\/figure>\n\n\n\n<ul>\n<li><a href=\"#Editing the .htaccess file\">Editing the .htaccess file<\/a><\/li>\n\n\n\n<li><a href=\"#2 Edit the wp-config.php file\">Edit the wp-config.php file<\/a><\/li>\n\n\n\n<li><a href=\"#Edit php.ini file\">Edit php.ini file<\/a><\/li>\n\n\n\n<li><a href=\"#Contact the support\">Contact the support<\/a><\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_cfd4879e-e4d5-494c-b747-81c44ac88b16\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"Editing the .htaccess file\">1. <span style=\"text-decoration: underline;\">Editing the .htaccess file &#8211;<\/span><\/h3>\n\n\n\n<p class=\"justify\">.htaccess is an Apache Web server configuration file. It allows you to configure the settings for individual folders and users. The .htaccess file provides a wide range of website customization. The maximum file size is one of the parameters you can set up in this file.<\/p>\n\n\n\n<p class=\"justify\">You can find the .htaccess file in the root folder of your website. To access it, you will require either an FTP manager or a web interface given by the hosting provider. In the case of an FTP manager, you will need the IP address, login, and password to connect remotely. Usually, this information is provided by the hosting service provider. If you are a WPOven user you can check out our post on, <a href=\"https:\/\/www.wpoven.com\/how-do-i-use-sftp-to-access-my-sites-theme-uploads-and-plugins\/\" target=\"_blank\" rel=\"noreferrer noopener\">How do I use Secure FTP (SFTP) to access my site&#8217;s files and folders?<\/a><\/p>\n\n\n<div class=\"wp-block-image imgsha round\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2019\/02\/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-1.png\"><img decoding=\"async\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2019\/02\/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-1.png\" alt=\".htaccess view\" class=\"wp-image-3652\" title=\"\"><\/a><figcaption class=\"wp-element-caption\"><em><sup>.htaccess view<\/sup><\/em><\/figcaption><\/figure><\/div>\n\n\n<ul class=\"justify\">\n<li class=\"justify\">Open the file in any text or code editor, like Sublime Text, Visual Studio Code, Notepad++, etc. Then find the upload_max_filesize line. It will look like this:<\/li>\n<\/ul>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code>php_value upload_max_filesize 64M<\/code><\/p>\n\n\n\n<ul class=\"justify\">\n<li>In some cases, the .htaccess file may not contain this line. Then, add it at the end of the document. Change the value to the one you really need. For example:<\/li>\n<\/ul>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code>php_value upload_max_filesize 512M<\/code><\/p>\n\n\n\n<p>If you did everything correctly, WordPress would not display this error anymore.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_87874a94-5579-44a8-9182-f13c72338e45\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"2 Edit the wp-config.php file\">2. <span style=\"text-decoration: underline;\">Edit the wp-config.php file-<\/span><\/h3>\n\n\n\n<p class=\"justify\">wp-config.php is the main configuration file of your WordPress website. It contains all the important parameters and tools to make the website work correctly. It is also located in the website root folder. Like a .htaccess file, you will need an FTP manager or web browser if you access it online.<\/p>\n\n\n<div class=\"wp-block-image imgsha round\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/edit-wp_config.png\" alt=\"Edit the wp-config.php file\" class=\"wp-image-14788\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/edit-wp_config.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/edit-wp_config-300x150.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/edit-wp_config-768x384.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>Edit the wp-config.php file<\/sup><\/em><\/figcaption><\/figure><\/div>\n\n\n<ul>\n<li>Open the file in any text or code editor and find the following line:<\/li>\n<\/ul>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code>define('WP_DEBUG', false);<\/code><\/p>\n\n\n\n<ul>\n<li>Right after that, add the line with the maximum file size parameter:<\/li>\n<\/ul>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code>@ini_set('upload_max_size' , '512M' );<\/code><\/p>\n\n\n\n<p>You can use any appropriate value instead of 512M.<\/p>\n\n\n\n<ul class=\"justify\">\n<li>Apply the changes, upload the file back to the server if you edited it offline, refresh the page, and try to upload the file again.<\/li>\n\n\n\n<li>The uploaded file exceeds the upload_max_filesize directive in PHP.ini error must be now solved.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_b6bec4ea-df07-4353-b91e-557915997055\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"Edit php.ini file\">3. <span style=\"text-decoration: underline;\">Edit php.ini file-<\/span><\/h3>\n\n\n\n<p class=\"justify\">The uploaded file exceeds the upload_max_filesize directive in the PHP.ini error means that something wrong is going on with the <strong>php.ini file<\/strong>. First, let&#8217;s find out what this file is for.<\/p>\n\n\n\n<p class=\"justify\">The php.ini file is the main PHP configuration file. WordPress uses the PHP programming language, and this file controls everything. Some hosting providers set up their configuration to the maximum parameters and do not allow it to change globally. However, in most cases it is possible.<\/p>\n\n\n\n<p>If you do not know where the php.ini file is located on the server, do the following steps:<\/p>\n\n\n\n<ul>\n<li>Start a text editor and type the following line of code in it:<\/li>\n<\/ul>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code>&lt;?php phpinfo(); ?&gt;<\/code><\/p>\n\n\n\n<ul start=\"2\" class=\"justify\">\n<li>Save the created file and name it info.php.<\/li>\n\n\n\n<li>Via the FTP manager, connect to the hosting server where your site is located and copy the info.php file to the website root directory.<\/li>\n\n\n\n<li>Now, in the address bar of your browser type http:\/\/example.com\/info.php, where instead of example.com type in your website address.<\/li>\n<\/ul>\n\n\n\n<p class=\"round\">As a result, the browser displays all the information about the PHP version used on the hosting, and information about its configuration. In the Loaded Configuration File column, it will display the path to the php.ini file on the host server.<\/p>\n\n\n<div class=\"wp-block-image imgsha round\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2019\/02\/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-3.png\"><img decoding=\"async\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2019\/02\/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-3.png\" alt=\"Edit php.ini file\" class=\"wp-image-3654\" title=\"\"><\/a><figcaption class=\"wp-element-caption\"><em><sup>Edit php.ini file<\/sup><\/em><\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Among other settings, check the value of the following three parameters:<\/p>\n\n\n\n<ul class=\"justify\">\n<li>memory_limit \u2014 the maximum memory size allowed by the host to run scripts on the website;<\/li>\n\n\n\n<li>post_max_size \u2014 allowed size of a one-time file import request;<\/li>\n\n\n\n<li>upload_max_filesize \u2014 the maximum amount of data that can be uploaded to the site per time.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image imgsha round\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2019\/02\/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-4.png\"><img decoding=\"async\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2019\/02\/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-4.png\" alt=\"upload_max_filesize\" class=\"wp-image-3655\" title=\"\"><\/a><figcaption class=\"wp-element-caption\"><em><sup>upload_max_filesize<\/sup><\/em><\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\">To increase the allowed maximum file size, you need to adjust the values specified in the upload_max_filesize and post_max_size parameters. If you use virtual hosting, most likely you will not have full access to the global server settings. As a rule, full access to this file is available on the local server or on a <a aria-label=\"VPS hosting (opens in a new tab)\" class=\"rank-math-link\" href=\"https:\/\/www.wpoven.com\/vps-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">VPS hosting<\/a>.<\/p>\n\n\n\n<p class=\"justify\">If you have access, open the php.ini file in edit mode and set the new upload_max_filesize and post_max_size values. The upload_max_filesize value should be less than post_max_size, and the post_max_size value should not be higher than the memory_limit. Do not forget to back up the site and save a backup copy of the php.ini file before you make any changes.<\/p>\n\n\n\n<p>It must look like the following:<\/p>\n\n\n\n<p class=\"round has-background\" style=\"background-color:#f0f0f0\"><code>; Maximum allowed size for uploaded files.<br>; http:\/\/php.net\/upload-max-filesize<br>upload_max_filesize = 100M<\/code><\/p>\n\n\n\n<p class=\"justify\">If you do not have access to the php.ini file, adjust the necessary values in the user.ini file. The path to it is indicated in the \u201cAdditional .ini files parsed\u201d section when opening the info.php file. This method works for PHP version 5 or higher.<\/p>\n\n\n\n<ul class=\"justify\">\n<li>Run a text or code editor and name the file user.ini.<\/li>\n\n\n\n<li>Add the necessary parameters to memory_limit, post_max_size, and upload_max_filesize.<\/li>\n\n\n\n<li>Using the <a href=\"https:\/\/www.wpoven.com\/blog\/new-file-manager-easily-manage-sites-files-folders\/\" target=\"_blank\" rel=\"noreferrer noopener\">file manager<\/a>, copy the user.ini file to the root directory of the site, upload the page, and try to upload the file again.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_fd919497-dd6a-4422-9cd1-f8905ec8e1f2\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"Contact the support\">4. <span style=\"text-decoration: underline;\">Contact the support-<\/span><\/h3>\n\n\n\n<p class=\"justify\">In many cases, it will be much easier to contact the technical support of your hosting provider and ask them to solve the issue. Remember that they may possibly not be able to change the parameters if your plan does not allow you to do that. In that case, you may be required to change it.<\/p>\n\n\n\n<p class=\"justify\">The uploaded file exceeds the upload_max_filesize directive in php.ini error is very easy to fix. All you need is several minutes of your time and some simple steps.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_7ac72a87-6a8c-44dc-8bea-7f07b8be5a88\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<p class=\"has-text-align-left round has-background\" style=\"background-color:#daf2ff\"><strong>Read:<\/strong>   \ud83d\udea9 You can also read our most popular posts on <a href=\"https:\/\/www.wpoven.com\/blog\/wordpress-common-errors-problems-and-there-solutions\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress common errors<\/a> such as <a href=\"https:\/\/www.wpoven.com\/blog\/how-to-fix-dns_probe_finished_nxdomain-error\/\" target=\"_blank\" rel=\"noreferrer noopener\">DNS_PROBE_FINISHED_NXDOMAIN<\/a>, <a href=\"https:\/\/www.wpoven.com\/blog\/error-404-not-found\/\" target=\"_blank\" rel=\"noreferrer noopener\">404 error<\/a>, <a href=\"https:\/\/www.wpoven.com\/blog\/how-to-fix-504-gateway-timeout\/\" target=\"_blank\" rel=\"noreferrer noopener\">504 gateway timeout<\/a>, <a href=\"https:\/\/www.wpoven.com\/blog\/how-to-fix-error-403-forbidden-error-for-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">403 Forbidden<\/a>.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_b8fa12af-106f-4f1c-9604-12c8b8d03467\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Fixed: The uploaded file exceeds the upload_max_filesize directive in php.ini Error [Complete Video]<\/h2>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Wordpress fix: The uploaded file exceeds the upload_max_filesize directive in php.ini\" width=\"525\" height=\"295\" src=\"https:\/\/www.youtube.com\/embed\/gdxivQ2gpxU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_e2337f88-aaa2-498a-ab4b-c35d4e33c70b\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div class=\"wp-block-group box is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p class=\"justify\">What does this error mean? Why does WordPress display it? What are the ways to fix this error? Let&#8217;s look closer.<\/p>\n\n\n\n<ul>\n<li><p id=\"the uploaded file exceeds the upload_max_filesize directive in php ini\"><a class=\"rank-math-link\" href=\"#the uploaded file exceeds the upload_max_filesize directive in php ini\">What is the uploaded file exceeds the upload_max_filesize directive in php.ini error?<\/a><\/p><\/li>\n\n\n\n<li><a class=\"rank-math-link\" href=\"#How to fix the uploaded file exceeds the upload_max_filesize directive in php ini ?\">How to fix the uploaded file that exceeds the upload_max_filesize directive in php.ini?<\/a><\/li>\n<\/ul>\n<\/div><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_ad5ea6a5-5cd2-4ffc-a95c-3d2a368ab477\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">What is &#8220;the uploaded file exceeds the upload_max_filesize directive in PHP.ini&#8221; Error?<\/h2>\n\n\n\n<p class=\"justify\">Depending on the platform you hosted your website on, your WordPress may have different maximum file size limits. In most cases, it is 64 MB, but sometimes it can be higher or significantly lower. <\/p>\n\n\n\n<p class=\"justify\">For example, in the WordPress configuration or php.ini file, you have a limit of 64 MB. And you are going to install the theme and plugin, or just upload the media file which is bigger. In this case, the server will throw the &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; error, and you will not be able to upload the file.<\/p>\n\n\n\n<p class=\"justify\">What are the ways to fix the issue? We\u2019ll review four of them in detail in the below section. But first<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_43d9f4e0-485f-4e0d-bc15-88c6db692bdf\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div class=\"wp-block-group fre-cons-box is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h2 class=\"wp-block-heading myh2\">What Causes &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; Error to Happen?<\/h2>\n\n\n\n<p class=\"justify\">In order to prevent abusing server resources and preserve them, many web hosts impose certain limitations on the maximum upload file size. This maximum file size (MB or MegaByte) is mentioned or defined in the <strong>max_file_size directive<\/strong>.<\/p>\n\n\n\n<p class=\"justify\">This <strong>max_file_size directive <\/strong>is itself present in the default server configuration (for certain applications that require PHP) file i.e. <strong>php.ini<\/strong>. <\/p>\n\n\n\n<p class=\"justify\">Therefore, you might have noticed the terms, upload_max_filesize as well as php.ini present in the error message &#8220;<strong>the uploaded file exceeds the upload_max_filesize directive in php.ini<\/strong>&#8220;. <\/p>\n<\/div><\/div>\n\n\n\n<div style=\"height:17px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_308d6302-f203-4aaa-9f56-86cca9115417\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<p class=\"justify round has-background\" style=\"background-color:#f0f0f0\"><strong>Note:<\/strong> <em>You must keep in mind that this upload file limit is not imposed or set by WordPress but by your web hosting provider. However, you can easily check out this upload limit in your WordPress <strong>dashboard &gt; media &gt; Add new<\/strong>.<\/em><\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_198cf0b2-ea4c-40f5-941b-77aff1f96f30\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div style=\"height:11px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-image imgsha round\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/upload_max_filesize-1.png\" alt=\"WPOven Max upload file size limit\" class=\"wp-image-14785\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/upload_max_filesize-1.png 1024w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/upload_max_filesize-1-300x137.png 300w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/upload_max_filesize-1-768x351.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><figcaption class=\"wp-element-caption\"><em><sup>Max upload file size limit<\/sup><\/em><\/figcaption><\/figure><\/div>\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"justify\">From the above picture, you can see, that WPOven sets the default maximum upload file size limit up to <strong>256 MB<\/strong>, which is quite large compared to what other web hosts provide by default i.e. 4MB, 64MB,128MB and it is very unlikely you face any issue in future.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_2b9f8fe2-06c3-4023-b1b6-b0963cc550dd\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/my.wpoven.com\/users\/signup\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"768\" height=\"256\" src=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/No-more-upload_max_filesize-error.png\" alt=\"No more upload_max_filesize error\" class=\"wp-image-14606\" srcset=\"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/No-more-upload_max_filesize-error.png 768w, https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/No-more-upload_max_filesize-error-300x100.png 300w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" title=\"\"><\/a><figcaption class=\"wp-element-caption\"><em><sup>WPOven<\/sup><\/em><\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_c4be4327-fa8f-4eef-894f-c5b296cbdc35\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p class=\"justify\">Finally, you can check or verify the changes you have made in the maximum upload file size and see if it&#8217;s working or not. To do so, go to your WordPress dashboard &gt; Media &gt; Add new and see if the file size limit you have applied is reflected in your php.ini file or not.<\/p>\n\n\n\n<p class=\"justify\">If you find everything works great and all the settings are exactly like you have made, then you should not face any &#8220;uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; error while uploading a file in the near future.<\/p>\n\n\n\n<p class=\"justify\">However, if things don&#8217;t work as you expected and even your web host support is unable to help you for some reason, the last thing you can do is upload files through an FTP client. Since FTP has no limitations or restrictions you can upload any file size without any issue.<\/p>\n\n\n\n<p class=\"justify\">But the best solution we would suggest you do is migrate your website to a more reliable and trusted Managed Web host, which provides you with a larger file upload limit with more server space, i.e. WPOven.<\/p>\n\n\n\n<p class=\"justify\">If you have any queries or would like to share your valuable points, please do let us know in the comment section below.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_16a091e5-ca27-4e14-85db-643b253f9827\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<div style=\"height:11px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-group tip is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<p class=\"justify\">No more &#8220;<strong>the uploaded file exceeds the upload_max_filesize directive in php.ini<\/strong>&#8221; error displaying on your screen. Host your website on WPOven and get a maximum upload file size limit than any other web host can provide. Save your time, money, and resources, and give your website mammoth growth with\u00a0<strong>WPOven\u2019s<\/strong>\u00a0<a href=\"https:\/\/www.wpoven.com\/dedicated-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>WordPress dedicated server hosting<\/em><\/a>.<\/p>\n\n\n\n<ul>\n<li>Get higher SSD storage<\/li>\n\n\n\n<li>Higher upload file size limit<\/li>\n\n\n\n<li>Fastest private servers<\/li>\n\n\n\n<li>Website Management<\/li>\n\n\n\n<li>24X7 WordPress Expert support<\/li>\n\n\n\n<li>High-end Security<\/li>\n\n\n\n<li>Datacentres around the world, etc.<\/li>\n<\/ul>\n<\/div><\/div>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_eca5f828-17b3-4f6d-bc87-1b5bd040b60d\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<p class=\"justify round has-background\" style=\"background-color:#f0f0f0;letter-spacing:0.5px\">You can have all these features and much more in a single plan with unlimited Free migrations, unlimited staging, and a\u00a0<strong>14-day risk-free guarantee<\/strong>.\u00a0<a href=\"https:\/\/www.wpoven.com\/plans-and-features\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Check out our plans<\/em><\/a>\u00a0or<strong>\u00a0<\/strong><a href=\"https:\/\/www.wpoven.com\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>Contact our support team<\/em><\/a>\u00a0which assist you in choosing the right plan.<\/p>\n\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_d576bade-9893-4e0c-949a-71f96e3664f0\"><hr class=\"ub_divider\" ><\/hr><\/div>\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1618050541967\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>How do I change the maximum upload size in PHP.INI?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>To increase\u00a0file upload size in PHP, you need to modify the\u00a0upload_max_filesize and\u00a0post_max_size\u00a0variables in your\u00a0php.ini file. In addition, you can also set the\u00a0maximum\u00a0number of files allowed to be\u00a0uploaded\u00a0simultaneously, in a single request, using the max_file_uploads\u00a0<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1618050579545\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>Where do I upload the PHP.INI file?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>For a list of ini\u00a0directives, please visit http:\/\/www.php.net\/manual\/en\/ini.list.php. For more information about the upload_max_filesize directive, please visit http:\/\/www.php.net\/manual\/en\/ini.core.php#ini.upload-max-filesize<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1618050633365\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><strong>Where is my PHP.INI file?<\/strong><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>ini file\u00a0is the default configuration\u00a0file\u00a0for running applications that require\u00a0PHP. It is used to control variables such as upload sizes,\u00a0file\u00a0timeouts, and resource limits. This\u00a0file\u00a0is located on your server in the \/public_html folder.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"wp-block-ub-divider ub-divider-orientation-horizontal\" id=\"ub_divider_62fd7bfe-1cff-40fd-9bfc-927087b2b10c\"><hr class=\"ub_divider\" ><\/hr><\/div>","protected":false},"excerpt":{"rendered":"<p>WordPress is the best content management system for building websites of almost any type and complexity. It does not require a deep knowledge of coding, so, it is the best choice for everyone. You can install WordPress manually or, depending on your web host, can also install it in one click. While uploading the files into WordPress, you may face the &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; error.<\/p>\n<p>At WPOven you can install a WordPress site to your server in a matter of seconds and easily manage it from our dashboard. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.wpoven.com\/blog\/how-to-fix-the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini-error\/\" class=\"more-link\">Read More <i class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/i><span class=\"screen-reader-text\"> &#8220;How to fix &#8220;the uploaded file exceeds the upload_max_filesize directive in php.ini&#8221; Error?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":14604,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[11],"acf":[],"featured_image_src":"https:\/\/www.wpoven.com\/blog\/wp-content\/uploads\/2022\/10\/upload_max_filesize.png","author_info":{"display_name":"Vikrant Datta","author_link":"https:\/\/www.wpoven.com\/blog\/author\/vikrant\/"},"_links":{"self":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/3642"}],"collection":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/comments?post=3642"}],"version-history":[{"count":2,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/3642\/revisions"}],"predecessor-version":[{"id":23576,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/posts\/3642\/revisions\/23576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/media\/14604"}],"wp:attachment":[{"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/media?parent=3642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpoven.com\/blog\/wp-json\/wp\/v2\/categories?post=3642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}