{"id":1575,"date":"2025-05-06T11:09:54","date_gmt":"2025-05-06T11:09:54","guid":{"rendered":"https:\/\/thumbpress.co\/?p=1575"},"modified":"2025-05-22T02:42:58","modified_gmt":"2025-05-22T02:42:58","slug":"how-to-increase-the-maximum-file-upload-size-in-wordpress","status":"publish","type":"post","link":"https:\/\/thumbpress.co\/blog\/how-to-increase-the-maximum-file-upload-size-in-wordpress\/","title":{"rendered":"How to Increase the Maximum File Upload Size in WordPress"},"content":{"rendered":"\n<p class=\"has-black-color has-text-color has-link-color wp-elements-f65c439a4a8c02cb52337e82142fa45d wp-block-paragraph\">Frustrated by WordPress refusing to upload your large files?<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-acf33a7e7f721af1d6e60772c858e0c8 wp-block-paragraph\">If you are trying to add high-quality media or bulky plugin files and keep getting blocked, you are likely running into the default file upload size limit. This setting is common and catches many users off guard, especially when building more media-rich pages.  <\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-30cac5ec90446cb0ca7b60b49ce40c64 wp-block-paragraph\">Instead of scaling down your content or finding workarounds, there are smarter solutions.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-a44448b828e66c42f0b878fe9b11183e wp-block-paragraph\">In this guide, we\u2019ll show you how to increase maximum file upload size in WordPress safely and effectively so you can keep your site running as you want it to.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-7b3d55e1818aa0465fefb45b0ef30f14 wp-block-paragraph\">Let\u2019s check out the details!<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-4000bb661897a2bc2cb63cc8b1f7bc9f\" style=\"font-size:28px\" id=\"codex-heading-1\">Why Increase WordPress Maximum Upload Size in WordPress<\/h2>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-688840b084b6aeb504468f5b690e07f2 wp-block-paragraph\">Sometimes, WordPress won\u2019t let you upload files like high-quality images, videos, themes, or plugins. That\u2019s because it has a default limit on how big each file can be. If your file is too large, you will get an error, and the upload won\u2019t go through.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-b514656e72a32b5335c2accb02e16341 wp-block-paragraph\">Increasing the maximum upload size in WordPress helps you avoid those roadblocks, letting you work more smoothly, and you can build your site without restrictions.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-ec66e419b0c918430b31c406257f1d13 wp-block-paragraph\">Here are a few real-life moments when the file upload limit can get in your way:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-black-color has-text-color has-link-color wp-elements-05c6afb04af26feea1914667647dfd9a\" style=\"font-size:17px\">Using a lot of media files.<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-33e0de7cfa719a212998172cc3bc4d84\">Uploading high-quality files.<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-66405809f9c4583621ed902d45715483\" style=\"font-size:17px\">Installing a large theme or plugin.<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-6a9191e127434869f393f441360458ba\">Updating content frequently beyond your current limit.<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-1493b3f5dea024ee341f5826c5e984ea\" style=\"font-size:17px\">Selling digital products like eBooks, photos, videos, and more<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-a6cdb48435647c9431e50c65f3f939c9\" style=\"font-size:28px\" id=\"codex-heading-2\">How to Check the Maximum Upload File Size in WordPress?<\/h2>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-e74274fe4eb7383d2223e94f181fc5bd wp-block-paragraph\">WordPress automatically shows the maximum file upload size when you are uploading something to your website.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-40744772f96b0a3a7e6bbaf4028285f8 wp-block-paragraph\"><strong>To check this, simply&nbsp;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-black-color has-text-color has-link-color wp-elements-0a034263dd9eb5df059658ee3ac8a857\" style=\"font-size:17px\">Go to your WordPress dashboard.&nbsp;<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-570a797b99b74a141b344da1a3c2d682\" style=\"font-size:17px\">After that, click on <strong>Media &gt; Add New<\/strong>.&nbsp;<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-22d3f7047fc33d2496d764069a81f290\" style=\"font-size:17px\">Look below the upload box. You will see a message that says something like: <strong>Maximum upload size: 2MB or the current limit<\/strong>.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"497\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/check-maximum-file-upload-size-1024x497.png\" alt=\"\" class=\"wp-image-1582\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/check-maximum-file-upload-size-1024x497.png 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/check-maximum-file-upload-size-300x146.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/check-maximum-file-upload-size-768x373.png 768w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/check-maximum-file-upload-size.png 1221w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-f676784f1e991e7e4fe3247154f95d83 wp-block-paragraph\">That\u2019s your current upload limit. If you try to upload a file larger than that size, WordPress will block it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-03fadd54f0c826dbc5810dd2c97e8a74\" style=\"font-size:28px\" id=\"codex-heading-3\">How to Increase Maximum File Upload Size in WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are many ways to increase maximum file upload size in WordPress. In this section, you will get the best methods to change the upload limit in WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-791b9c8f0291be7d2795dd064437e2bd\" style=\"font-size:26px\" id=\"codex-heading-4\">1. Using WordPress Plugin&nbsp;<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-46a1a17da5d6737bbdb7a3577414ca41 wp-block-paragraph\">Not everyone feels comfortable writing code or using SSH or FTP to access website files. If that sounds like you, using a plugin is a much easier option. In this case, we will use the <a href=\"https:\/\/wordpress.org\/plugins\/wp-maximum-upload-file-size\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>MaxUploader WordPress plugin<\/strong><\/a> to increase maximum file upload size in WordPress.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-8ec8b321b76b9007a4d99e1a9b5ce3c2\" style=\"font-size:24px\">Step 1: Install and Activate the Plugin<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-c554242c10644daeec2ac7406918158f wp-block-paragraph\">Go to your WordPress <strong>Dashboard &gt; Plugins &gt; Add New<\/strong>, then search for MaxUploader. Click Install and then Activate the plugin.<\/p>\n\n\n\n<div style=\"height:22px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"572\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/activate-the-plugin.png\" alt=\"activate the MaxUploader plugin in your website.\" class=\"wp-image-1584\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/activate-the-plugin.png 970w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/activate-the-plugin-300x177.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/activate-the-plugin-768x453.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-9ac00cf961d1ea846fe5a532228b76c6 wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-a823033c9ea80e64c557b4c3fc9bed88\" style=\"font-size:24px\">Step 2: Configure Settings<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-8767609716e5c4e0d254a68bb4fbbb05 wp-block-paragraph\">Once it\u2019s installed, go to the plugin\u2019s settings and type in the upload size you want, for example,<strong> 128MB or 512MB<\/strong>. After that, click the Save Changes button to apply the new upload limit.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"908\" height=\"623\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/increase-maximum-file-upload-size-in-WordPress-using-a-plugin.png\" alt=\"\" class=\"wp-image-1585\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/increase-maximum-file-upload-size-in-WordPress-using-a-plugin.png 908w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/increase-maximum-file-upload-size-in-WordPress-using-a-plugin-300x206.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/increase-maximum-file-upload-size-in-WordPress-using-a-plugin-768x527.png 768w\" sizes=\"auto, (max-width: 908px) 100vw, 908px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-13c1878ccd8e26de11fa9fd00c614373\" style=\"font-size:26px\" id=\"codex-heading-5\">2. Edit functions.php File<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-dc99f52bc772bc4fe78a2294d4a5806a wp-block-paragraph\">When trying to upload high-quality images, videos, or other large files to your WordPress site, you will get an error saying the file is too big. This often happens when your upload size limit is set too low.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-ac9d135af93de8415438108210ade1dc wp-block-paragraph\">WordPress officially tells its users to use NGINX\/Apache for best performance. Sometimes the .htaccess can be hidden, but there are other ways to fix it.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-23db5f31cc0a8a26da7524936a9c14f5\" style=\"font-size:24px\">Step 1: Add Code to Your Theme\u2019s function.php<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-224810c8921f58fb4f259ce0a3c41e31 wp-block-paragraph\">You can increase maximum file upload size in WordPress manually. For this, go to <strong>Appearance &gt; Theme File Editor &gt; function.php<\/strong>. After that, add the following code to the bottom and click on the <strong>Update file<\/strong> button.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-d7becd445bc51e50788610e0b71ff7de\" style=\"border-style:none;border-width:0px;font-size:17px\"><code>@ini_set( 'upload_max_size' , '64M' );\n@ini_set( 'post_max_size', '64M');\n@ini_set( 'max_execution_time', '300' );<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"713\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/edit-function.php-file-1024x713.png\" alt=\"\" class=\"has-border-color has-ast-global-color-5-border-color wp-image-1587\" style=\"border-width:3px;border-radius:3px\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-function.php-file-1024x713.png 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-function.php-file-300x209.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-function.php-file-768x534.png 768w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-function.php-file.png 1161w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-light-green-cyan-background-color has-text-color has-background has-link-color wp-elements-ca3bb681ff111cee561687e6b26ad801 wp-block-paragraph\"><strong>Heads-up:<\/strong> This change only applies to the current theme. If you change themes, you\u2019ll need to re-add the code to the new one.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-0bcf0def82f88e0024bfeb70cd3b182d\" style=\"font-size:24px\">Step 2: Use a WordPress Plugin<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-9f4a4faa3f73e8a3763a70dae46149a0 wp-block-paragraph\">If you are comfortable with using a plugin, you can try any WordPress plugins for adding this code snippet.&nbsp;<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-582a7d66410f617b23612da9c73a0032 wp-block-paragraph\"><strong>Here is what you need to do &#8211;&nbsp;<\/strong><\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-1b166e85cf3260cb9fb97e291279d2ba wp-block-paragraph\">Install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Code Snippets plugin<\/strong><\/a>, and then navigate to the<strong> Add New Snippet<\/strong> screen. Use the same code here and save it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-3ad37c7a1198f4fe01fd99537faae364\" style=\"font-size:26px\" id=\"codex-heading-6\">3. Increase Maximum Upload File Size via FTP\/cPanel<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-4f7d9f554d585201be429a80c600eff5 wp-block-paragraph\">If your site uses Apache and PHP is set as an Apache module, you can increase the upload limit by editing your WordPress .htaccess file.<\/p>\n\n\n\n<p class=\"has-black-color has-light-green-cyan-background-color has-text-color has-background has-link-color wp-elements-68d2e51476348b9d9d51bda9cec66848 wp-block-paragraph\"><strong>Be careful:<\/strong> A small mistake in this file can break your site. Make sure to back it up before making any changes. If you&#8217;re not sure, ask your hosting provider for help.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-24c65a876badc4b2686120bf1b871f29\" style=\"font-size:24px\">Step 1: Edit .htaccess via FTP<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-2871b4a94b3490c6b555741b40685f7c wp-block-paragraph\">Connect to your server using an <a href=\"https:\/\/filezilla-project.org\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>FTP client like FileZilla<\/strong><\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"812\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/edit-.htacesss-file-1024x812.png\" alt=\"\" class=\"has-border-color has-white-border-color wp-image-1591\" style=\"border-width:3px;border-radius:3px\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-.htacesss-file-1024x812.png 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-.htacesss-file-300x238.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-.htacesss-file-768x609.png 768w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/edit-.htacesss-file.png 1090w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-6d5bdf7aa6868ec48b18d23a44f58d34 wp-block-paragraph\">Go to your WordPress folder.  Open the file and add this code at the top or before <strong># BEGIN WordPress<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-65dc3527a34a535175f2f6ebb22b5dd3\"><code><strong>php_value upload_max_filesize 64M\n\nphp_value post_max_size 128M\n\nphp_value memory_limit 256M\n\nphp_value max_execution_time 300\n\nphp_value max_input_time 300<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"672\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/add-code-before-begin-WordPress.png\" alt=\"\" class=\"wp-image-1592\" style=\"border-width:3px;border-radius:3px\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/add-code-before-begin-WordPress.png 924w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/add-code-before-begin-WordPress-300x218.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/add-code-before-begin-WordPress-768x559.png 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-6d95baa1360185edf5f586086f3cbd68\" style=\"font-size:24px\">Step 2:&nbsp; Use cPanel<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-51a57f6c426407bf41076bcf310bf45c wp-block-paragraph\">Log in to cPanel and open <strong>File Manager<\/strong>. After that, go to the public_html folder.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/File-manager-in-cPanel.png\" alt=\"\" class=\"wp-image-1594\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/File-manager-in-cPanel.png 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/File-manager-in-cPanel-300x141.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/File-manager-in-cPanel-768x362.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-3ee49bfcc518b28f560d780900e904ba wp-block-paragraph\">Right-click .htaccess to&nbsp;<strong>Edit<\/strong> and paste the same code before <strong># BEGIN WordPress<\/strong>.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-a09b3cca52d8f6bcf109703b064f68aa wp-block-paragraph\">If you want to skip FTP or cPanel process, you can simply install a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/wp-htaccess-editor\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Htaccess File Editor<\/strong><\/a> in your website to edit the .htaccess file directly from your WordPress dashboard, no FTP or cPanel needed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-7438df234dcf3354fdc6e72f86f97d35\" style=\"font-size:26px\" id=\"codex-heading-7\">4. Create or Edit php.ini File<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-12ea09b3f4e03072701709f7f2f4e719 wp-block-paragraph\">The php.ini file is a basic settings file used by websites that run on PHP (WordPress). It controls things like how big a file you can upload, how long a script can run, and how much memory your site can use.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-77e22bdf84bb7a4d6b756c5f37a2d87c\" style=\"font-size:24px\">Step 1: How to Edit This File<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-d999d3ecb2d05ba2295ec2b4457a5fcb wp-block-paragraph\">Go to your WordPress root folder. You can do this using FTP (like FileZilla) or SSH. Look for a file named php.ini. If it\u2019s already there, you can open and edit it. If you don\u2019t see it, don\u2019t worry, you can create a new one.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"674\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/Edit_php.ini_File-1024x674.jpg\" alt=\"\" class=\"has-border-color has-ast-global-color-5-border-color wp-image-1597\" style=\"border-width:3px;border-radius:3px\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/Edit_php.ini_File-1024x674.jpg 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/Edit_php.ini_File-300x198.jpg 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/Edit_php.ini_File-768x506.jpg 768w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/Edit_php.ini_File.jpg 1166w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-4b63222cad06e48d7ffe43b0a7e54ee8\" style=\"font-size:24px\">Step 2: How to Create a New php.ini File<\/h4>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-70f80158489a894e3893026846d410fd wp-block-paragraph\">Open your text editor, like Notepad, on your computer. After that, paste the following code.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-f2ddeb6abba20b4ed0344021b6e5908a\" style=\"font-size:17px\"><code><strong>upload_max_filesize = 64M\n\npost_max_size = 128M\n\nmemory_limit = 264M<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-c933e4955f24f0da1f00a814b5fad823 wp-block-paragraph\">Next, save the file as php.ini. Make sure the file extension is .ini, not .txt. After that, use FTP or SSH to upload this file to your WordPress root folder ( where wp-config.php is located)<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-348ffbb118674a0c8e90069cd8feb7ac\" id=\"codex-heading-8\">5. Increase Upload Size in Multisite<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-abbbef2f67b67cd03ad72b54c09557cc wp-block-paragraph\">If you&#8217;re using WordPress Multisite, you can change the upload file size limit for all the sites on your network. Here\u2019s how you can increase maximum file upload size in WordPress multisite:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li class=\"has-black-color has-text-color has-link-color wp-elements-f983758a9e3878c3a3228b6def7491cb\" style=\"font-size:17px\">Go to your Network Admin dashboard and navigate to <strong>Settings &gt; Network Settings<\/strong>.<\/li>\n\n\n\n<li class=\"has-black-color has-text-color has-link-color wp-elements-3b9cf09ac261251abc863cfe6d37916a\" style=\"font-size:17px\">Next, scroll down to the <strong>Upload Settings<\/strong> section and look for the <strong>Max upload file size<\/strong> field<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large has-custom-border\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"575\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/05\/maximum_file_upload_size_in_WordPress_multisite-1024x575.png\" alt=\"\" class=\"has-border-color has-white-border-color wp-image-1600\" style=\"border-width:3px;border-radius:3px\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/maximum_file_upload_size_in_WordPress_multisite-1024x575.png 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/maximum_file_upload_size_in_WordPress_multisite-300x169.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/maximum_file_upload_size_in_WordPress_multisite-768x431.png 768w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/05\/maximum_file_upload_size_in_WordPress_multisite.png 1086w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-c261a00af2dac15c9b907e8f2579b84e wp-block-paragraph\">By default, this is set to 1500 KB (about 1.5 MB). You can enter a higher value, for example, 131072 KB (which equals 128 MB), and click Save Changes.<\/p>\n\n\n\n<p class=\"has-black-color has-light-green-cyan-background-color has-text-color has-background has-link-color wp-elements-97e41faaca674f11e09ef51a885aa5e1 wp-block-paragraph\"><strong>Important:<\/strong> This setting won\u2019t override your server\u2019s upload limit. If you set a higher value than what your server allows, it won\u2019t work. Make sure your server is configured to support the new limit. You can use other methods (like editing php.ini or .htaccess) to update the server settings.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-b9844f7d51d8f621d11afb86bc8c6e5b wp-block-paragraph\">You can also control the total upload size allowed for each site in your network, but that option is turned off by default.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-b06f68e35b53026198cbbba3e7cfc6e1\" style=\"font-size:28px\" id=\"codex-heading-9\">How to Prevent Large File Uploads Using WordPress\u2019 upload_size_limit Filter?<\/h2>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-26716623c6263ba53a7c9bcc4db3fc5b wp-block-paragraph\">Large files, like videos and big images, can slow down your website. To avoid that, you can limit the file size for non-admin users using a small piece of code or use a WordPress plugin to <a href=\"https:\/\/thumbpress.co\/modules\/image-upload-limit\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>set maximum image upload size<\/strong><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s the code you\u2019ll need:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-41ca71ea7fcaae1952c0e753a32f955a\" style=\"font-size:17px\"><code><strong>function custom_upload_size_limit( $size ) {\n\n&nbsp;&nbsp;&nbsp;&nbsp;if ( ! current_user_can( 'manage_options' ) ) {\n\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$size = 1024 * 5120; \/\/ 5 MB\n\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;return $size;\n\n}\n\nadd_filter( 'upload_size_limit', 'custom_upload_size_limit', 20 );<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-aa1a6d621ad9566dda4906d646625c8b wp-block-paragraph\"><strong>What this code does:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It checks if the user is an admin. If the user is not an admin, the upload limit is set to 5 MB. Admins can still upload larger files without any limit.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-f2c3569fdf8a179479fce2566c7539b9 wp-block-paragraph\"><strong>Where to add this code:<\/strong><\/p>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-fb8f526565e6cd07d2cf422ce2d265ff\">\n<li>Go to your WordPress dashboard.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-1b27ba6946cacb815c01065ca9c7360d\">\n<li>Click on <strong>Appearance &gt; Theme Editor<\/strong>.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-a8e3561f9c93071a89295a3a35136285\">\n<li>On the right side, find and click on the <strong>functions.php<\/strong> file.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-183897a6aa0b13383775a3870bbfb581\">\n<li>Scroll to the bottom and paste the code <strong>(just before the ?&gt; tag, if there is one)<\/strong>.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-7ce5b658c2d2689c4ad5125c8d39086b\">\n<li>Click <strong>Update File<\/strong> to save.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-76c8eed10af117f2bb500749ccecdbec\" style=\"font-size:28px\" id=\"codex-heading-10\">Wrapping Up<\/h2>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-b7ada1fc6cf45cea31281bd01e5e6c82 wp-block-paragraph\">There are several easy ways to increase your file upload limit. You can edit code files like .htaccess, php.ini, or functions.php, use a plugin, or adjust settings in your hosting control panel.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-870f6034926084938f675fafd8f158fb wp-block-paragraph\">Once you increase the limit, you can upload high-quality media, install larger plugins or themes, and manage your content without worrying about file size. Just make sure your server\u2019s settings support the changes.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-0854f80a19eb7e7d163909056fe2080b wp-block-paragraph\">Now you can upload large files easily and keep growing your site. If you\u2019re unsure, you can always ask your hosting provider or use the mentioned plugin for a simpler solution.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-7e2f84525686d4e233693524c0e135b8\" style=\"font-size:28px\" id=\"codex-heading-11\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-b02e50008bf7b4836a9035b557f2f22b\" style=\"font-size:26px\" id=\"codex-heading-12\">Q. How to increase upload_max_filesize?<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-90c761c1f50070473255d5cc5de0ffd2 wp-block-paragraph\">You can increase upload_max_filesize by editing your site&#8217;s php.ini file (if your hosting provider allows it). Find the line that says:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-d3ef8ebe4c061f9df72c0992e8c0930d\" style=\"font-size:17px\"><code><strong>upload_max_filesize = 2M<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-f39ddf90ff47fee960378b4844b21796 wp-block-paragraph\">Change it to a higher value, like:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-7b9b8352c617876023f22784080a4070\" style=\"font-size:17px\"><code><strong>upload_max_filesize = 64M<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-3bce5acf18891620f3a0eb6a83fa8519 wp-block-paragraph\">After saving the file, restart your server if needed. If you don\u2019t have access to php.ini, you can try adding the same rule in .htaccess or wp-config.php, or ask your hosting provider for help.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-0118554766ed9f2e6197fc7ec761515f\" style=\"font-size:26px\" id=\"codex-heading-13\">Q. How do I increase my WP memory limit?<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-3f54822d424e6781e08ff4b8a5a92e6f wp-block-paragraph\">To increase your WordPress memory limit, open the wp-config.php file in your site\u2019s root folder and add this line:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-1f9af361aa55cf8a1200959f28196f55\" style=\"font-size:17px\"><code><strong>define( 'WP_MEMORY_LIMIT', '256M' );<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-4b563abca974c59af1c96e2425d6c3e8 wp-block-paragraph\">This increases the memory WordPress can use. Make sure your hosting plan allows it; otherwise, you may need to ask your host to increase it from their end.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-05072a2e75dd581f246fd67cf247b483\" style=\"font-size:26px\" id=\"codex-heading-14\">Q. How can I increase the maximum upload size through the hosting provider?<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-804f4012f9800487a44403cc46ff3936 wp-block-paragraph\">Most hosting providers let you adjust upload limits from your control panel. Here\u2019s how:<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-166e0743bee0140680b8da50135e919f wp-block-paragraph\"><strong>cPanel:<\/strong> Go to your hosting File manager and <strong>Select PHP Version &gt;&gt; Options or MultiPHP INI Editor<\/strong>, then raise the values for <strong>upload_max_filesize, post_max_size, and memory_limit<\/strong>.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-666a639314dc3761bffbc229ce2462e5 wp-block-paragraph\"><strong>Managed Hosting:<\/strong> Some hosts, like <a href=\"https:\/\/hostinger.sjv.io\/aOAnKq\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Hostinger<\/strong><\/a>, <a href=\"https:\/\/kinsta.com\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Kinsta<\/strong><\/a>, <a href=\"https:\/\/wpengine.com\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>WP Engine<\/strong><\/a>,&nbsp; require you to contact support. They\u2019ll usually raise the limits for you quickly. If you&#8217;re not sure, check your host&#8217;s documentation or reach out to their support team.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-6226feccd98c94972ab1b168c13d6929\" style=\"font-size:26px\" id=\"codex-heading-15\">Q. How do I increase maximum image upload size in WordPress using a plugin?<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-d91fd4af34d936a4168f3db05eff6699 wp-block-paragraph\">To increase maximum image upload size in WordPress, follow the easy steps below:<\/p>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-15fb3b4de0718c41772035cdd6a0695a\">\n<li>Go to your WordPress <strong>dashboard &gt;&gt; Plugins &gt;&gt; Add New<\/strong>.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-db41823bacef06898c036f2827865879\">\n<li>Search for <strong>ThumbPress<\/strong>, install it, and activate the plugin.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-ddddd25b1deaae676be4f27b5b2d07cc\">\n<li>Then, open ThumbPress Settings, turn on the <strong>Image Upload Limit<\/strong> option, and Save Changes.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-fc8c33a85191d35a457c4f33435a752b\">\n<li>Next, on the new tab, set the image size limits you want, and save your settings.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading has-black-color has-text-color has-link-color wp-elements-8e3a63e582c6d7539915fdd109cb425c\" style=\"font-size:26px\" id=\"codex-heading-16\">Q. How to disable unnecessary thumbnails in WordPress?<\/h3>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-e27af451ee8657368b9be06a664d59a3 wp-block-paragraph\">To disable unnecessary thumbnails in WordPress, you have to-&nbsp;<\/p>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-4e1335a05ddc5eea288b55148321ed2d\">\n<li>Go to <strong>Dashboard &gt; Plugins &gt; Add New<\/strong>, search for ThumbPress, and activate it.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-7d1fd06cddad07ed61f38ed2d41387b5\">\n<li>Open ThumbPress Settings, enable <strong>Disable Thumbnails<\/strong>, and save the settings.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-708fa3f6ec8f02b373d3ad591e17f9f1\">\n<li>In the new tab, drag the image sizes you want to turn off to the right.<\/li>\n<\/ul>\n\n\n\n<ul style=\"font-size:17px\" class=\"wp-block-list has-black-color has-text-color has-link-color wp-elements-751ab6bad05f92f17f1e14061e1cb035\">\n<li>Save your changes again.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Frustrated by WordPress refusing to upload your large files? If you are trying to add high-quality media or bulky plugin [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":1602,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[38],"tags":[39],"class_list":["post-1575","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wordpress-guide"],"_links":{"self":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts\/1575","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/comments?post=1575"}],"version-history":[{"count":28,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts\/1575\/revisions"}],"predecessor-version":[{"id":1741,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts\/1575\/revisions\/1741"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/media\/1602"}],"wp:attachment":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/media?parent=1575"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/categories?post=1575"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/tags?post=1575"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}