{"id":23027,"date":"2019-11-14T16:03:29","date_gmt":"2019-11-14T16:03:29","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=23027"},"modified":"2026-10-15T03:33:00","modified_gmt":"2026-10-15T03:33:00","slug":"how-to-increase-the-maximum-file-upload-size-in-wordpress","status":"publish","type":"post","link":"\/uk\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress\/","title":{"rendered":"How to increase the maximum file upload size in WordPress"},"content":{"rendered":"<p class=\"wp-block-paragraph\">To increase the maximum file upload size in WordPress, you can change your PHP settings through your hosting control panel, edit configuration files such as <code>.htaccess<\/code> or <code>php.ini<\/code>, or use a plugin that supports larger uploads.<\/p><p class=\"wp-block-paragraph\">Before making changes, check your current upload limit in WordPress. The best method depends on your hosting environment, and you can&rsquo;t increase PHP settings beyond the limits allowed by your hosting provider.<\/p><p class=\"wp-block-paragraph\">This tutorial covers four methods, starting with the easiest option for most hosting users.<\/p><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading h-t-title-2\" id=\"h-how-to-check-your-wordpress-upload-limit\">How to check your WordPress upload limit<\/h2><p class=\"wp-block-paragraph\">Before changing your <a href=\"\/gb\/tutorials\/what-is-wordpress\/\">WordPress<\/a> upload settings, check the maximum file size your website currently allows.<\/p><ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to your WordPress dashboard.<\/li>\n\n\n\n<li>Navigate to <strong>Media &rarr; Add New Media File<\/strong>.<\/li>\n\n\n\n<li>Look for the maximum upload file size displayed below the upload area.<\/li>\n<\/ol><p class=\"wp-block-paragraph\">If the limit is smaller than the file you want to upload, follow one of the methods below to increase it.<\/p><h2 id=\"h-three-ways-to-increase-wordpress-maximum-file-upload-size\" class=\"wp-block-heading h-t-title-2\">How to increase the maximum upload size in WordPress<\/h2><p class=\"wp-block-paragraph\">To modify WordPress&rsquo; file upload size, you need to access your hosting control panel and WordPress administrator dashboard. Make sure you have access to both of them before diving into the tutorial below.<\/p><p class=\"wp-block-paragraph\">Here are four ways to increase WordPress&rsquo; maximum file upload size:<\/p><h3 class=\"wp-block-heading h-t-title-3\">2. Change PHP limits through your hosting control panel<\/h3><p class=\"wp-block-paragraph\">The easiest way to increase your WordPress upload limit is through your hosting control panel, if your provider allows PHP configuration changes.<\/p><p class=\"wp-block-paragraph\">For Hostinger users:<\/p><ol start=\"1\" class=\"wp-block-list\">\n<li>Log in to your Hostinger account and navigate to <strong>Websites &rarr; Dashboard<\/strong>.<\/li>\n\n\n\n<li>Open <strong>PHP Configuration<\/strong> from the sidebar.<\/li>\n\n\n\n<li>Select the <strong>PHP Options<\/strong> tab.<\/li>\n\n\n\n<li>Find <code>upload_max_filesize<\/code> and increase it to your desired limit, such as 128M.<\/li>\n\n\n\n<li>Set <code>post_max_size<\/code> higher than <code>upload_max_filesize<\/code>, such as 160M, and save your changes.<\/li>\n<\/ol><p class=\"wp-block-paragraph\">The available values depend on your hosting plan. If you can&rsquo;t select a higher limit, check the maximum PHP settings supported by your provider.<\/p><h3 id=\"h-1-modifying-htaccess-file\" class=\"wp-block-heading h-t-title-3\">2. Modify the .htaccess File<\/h3><p class=\"wp-block-paragraph\">Many hosting providers allow you to change the PHP settings via <strong>.htaccess<\/strong> file. You can take advantage of this ability to apply <strong>php_value upload_max_filesize<\/strong> rule in this file.<\/p><p class=\"wp-block-paragraph\">Here&rsquo;s how this method works:<\/p><ol class=\"wp-block-list\">\n<li>Access the WordPress root directory (<strong>public_html<\/strong>) via an <a href=\"\/gb\/tutorials\/ftp\/filezilla-ftp-configuration\">FTP client<\/a> or File Manager. For Hostinger users, you can access the <strong>File Manager<\/strong> in your Hostinger dashboard.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\"><img decoding=\"async\" width=\"1024\" height=\"482\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/File-manager-button-in-hPanel.png\/w=1024,h=1024,fit=scale-down\" alt=\"File manager button in hPanel\" class=\"wp-image-81343\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/03\/File-manager-button-in-hPanel.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/03\/File-manager-button-in-hPanel-300x141.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/03\/File-manager-button-in-hPanel-150x71.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2023\/03\/File-manager-button-in-hPanel-768x361.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Open the <strong>.htaccess<\/strong> file and add the following code to the bottom of the file. Once you&rsquo;re done, save the changes.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/01\/file-manager-htaccess.png\"><img decoding=\"async\" width=\"1402\" height=\"652\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/01\/file-manager-htaccess.png\/w=1024,h=1024,fit=scale-down\" alt=\"Locating .htaccess file in the root directory using Hostinger's File Manager\" class=\"wp-image-101947\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/01\/file-manager-htaccess.png 1402w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/01\/file-manager-htaccess-300x140.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/01\/file-manager-htaccess-1024x476.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/01\/file-manager-htaccess-150x70.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/01\/file-manager-htaccess-768x357.png 768w\" sizes=\"(max-width: 1402px) 100vw, 1402px\" \/><\/a><\/figure><\/div><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php_value upload_max_filesize 128M\nphp_value post_max_size 160M<\/pre><h3 id=\"h-2-configuring-php-ini-file\" class=\"wp-block-heading h-t-title-3\">3. Configure php.ini File<\/h3><p class=\"wp-block-paragraph\">This method is most suitable for WordPress sites with VPS hosting as shared hosting providers generally don&rsquo;t allow editing the <strong>php.ini<\/strong> file. If you&rsquo;re running on shared hosting, make sure to contact your hosting support team and clarify whether or not you can modify the <strong>php.ini<\/strong> file.<\/p><p class=\"wp-block-paragraph\">Here&rsquo;s how to increase the maximum file upload size by configuring <strong>php.ini<\/strong> file:<\/p><ol class=\"wp-block-list\">\n<li>Access the WordPress root directory (public_html) via an FTP client, File Manager, or <a href=\"\/gb\/tutorials\/ssh-tutorial-how-does-ssh-work\">SSH<\/a> (if it&rsquo;s supported), then open the <strong>php.ini<\/strong> file. If you cannot find the file, create one under the same name and filetype in the root directory.<\/li>\n\n\n\n<li>Add the following code to the <strong>php.ini<\/strong> file and save the changes. <\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php_value upload_max_filesize 128M\nphp_value post_max_size 160M\nmax_execution_time = 300<\/pre><h3 id=\"h-3-editing-functions-php-file\" class=\"wp-block-heading h-t-title-3\">4. Upload larger files using a WordPress plugin<\/h3><p class=\"wp-block-paragraph\">If you prefer not to edit PHP configuration files, you can use a WordPress plugin such as <a href=\"https:\/\/wordpress.org\/plugins\/tuxedo-big-file-uploads\/\" target=\"_blank\" rel=\"noopener\">Big File Uploads<\/a> to handle larger media uploads.<\/p><ol start=\"1\" class=\"wp-block-list\">\n<li>Open your WordPress dashboard and navigate to <strong>Plugins &rarr; Add New Plugin<\/strong>.<\/li>\n\n\n\n<li>Search for <strong>Big File Uploads<\/strong>, then install and activate it.<\/li>\n\n\n\n<li>Go to <strong>Settings &rarr; Big File Uploads<\/strong>.<\/li>\n\n\n\n<li>Set your preferred maximum file size and save the changes.<\/li>\n\n\n\n<li>Try uploading a larger file through the WordPress Media Library.<\/li>\n<\/ol><p class=\"wp-block-paragraph\">The plugin uploads files in smaller chunks, helping you work around PHP&rsquo;s per-request upload restrictions. However, it doesn&rsquo;t increase your hosting plan&rsquo;s storage capacity or change your server&rsquo;s PHP configuration.<\/p><h2 class=\"wp-block-heading h-t-title-2\" id=\"h-how-to-verify-your-new-wordpress-upload-limit\">How to verify your new WordPress upload limit<\/h2><p class=\"wp-block-paragraph\">After updating your PHP settings, return to <strong>Media &rarr; Add New Media File<\/strong> in WordPress and check whether the maximum upload size has increased.<\/p><p class=\"wp-block-paragraph\">Try uploading a file larger than your previous limit but smaller than the new one. If the upload still fails, review your <code>upload_max_filesize<\/code> and <code>post_max_size<\/code> settings and check whether your hosting plan imposes a lower limit.<\/p><p class=\"wp-block-paragraph\">If you&rsquo;re using a chunked-upload plugin, check its configured file size limit and test an upload through the supported WordPress media uploader.<\/p><h2 id=\"h-reasons-to-increase-wordpress-maximum-file-upload-size\" class=\"wp-block-heading h-t-title-2\">Reasons to Increase WordPress Maximum File Upload Size<\/h2><p class=\"wp-block-paragraph\">WordPress provides a built-in media uploader. It saves you time as you don&rsquo;t have to connect with FTP clients or use a File Manager from your hosting provider. Despite so, the PHP-based uploader has an upload limit for maximum file size. The upload file limit may vary depending on your hosting provider and WordPress configuration.<\/p><p class=\"wp-block-paragraph\">You can check your WordPress upload file limit by navigating to <strong>Media<\/strong> -&gt;<strong> Add New<\/strong> from the administrator dashboard.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"307\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2019\/11\/wordpress-upload-file-size.png\/public\" alt=\"This image shows you how to check your WordPress maximum file upload size. You can use this information to determine whether or not you need to increase the maximum limit.\" class=\"wp-image-23030\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/11\/wordpress-upload-file-size.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/11\/wordpress-upload-file-size-150x45.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/11\/wordpress-upload-file-size-300x90.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2019\/11\/wordpress-upload-file-size-768x230.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div><p class=\"wp-block-paragraph\">While the maximum upload file limit is more than enough to accommodate regular use, there are cases where you may need to upload large files. This can be problematic as uploading files bigger than the allowed size results in &lsquo;<strong><a href=\"\/gb\/tutorials\/fix-the-uploaded-file-exceeds-the-upload-max-filesize-directive-in-php-ini-wordpress\">the uploaded file exceeds the upload_max_filesize directive in php.ini<\/a><\/strong>&rsquo; error.<\/p><figure class=\"wp-block-image size-large\"><a aria-label=\"Wordpress hosting\" href=\"\/uk\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"2048\" height=\"600\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/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\/51\/2024\/06\/New-WP_in-text-banner.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><h2 id=\"h-conclusion\" class=\"wp-block-heading h-t-title-2\">Next steps: Test your WordPress uploads<\/h2><p class=\"wp-block-paragraph\">Once you&rsquo;ve increased your WordPress upload limit, test the changes by uploading the files that previously exceeded the restriction.<\/p><p class=\"wp-block-paragraph\">If large uploads continue to fail, check your hosting plan&rsquo;s PHP and storage limits before increasing additional settings. For media-heavy websites, consider optimizing large images and videos instead of uploading unnecessarily large files, as this can help reduce storage usage and improve page loading speed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To increase the maximum file upload size in WordPress, you can change your PHP settings through your hosting control panel, edit configuration files such as .htaccess or php.ini, or use a plugin that supports larger uploads. Before making changes, check your current upload limit in WordPress. The best method depends on your hosting environment, and [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/uk\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Increase WordPress Maximum Upload Size (4 Ways)","rank_math_description":"Learn how to increase the maximum file upload size in WordPress using your hosting control panel, PHP settings, or a plugin, and verify the new limit.","rank_math_focus_keyword":"increase wordpress upload size","footnotes":""},"categories":[22667],"tags":[],"class_list":["post-23027","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/como-aumentar-limite-upload-wordpress\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/upload-fichiers-wordpress\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-menambah-ukuran-maximum-file-upload-di-wordpress\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/como-aumentar-limite-upload-wordpress\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/23027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/comments?post=23027"}],"version-history":[{"count":25,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/23027\/revisions"}],"predecessor-version":[{"id":139197,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/23027\/revisions\/139197"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media?parent=23027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/categories?post=23027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/tags?post=23027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}