{"id":1519,"date":"2019-02-08T10:35:57","date_gmt":"2019-02-08T10:35:57","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583347-how-to-change-wordpress-upload-limitation-at-hostinger\/"},"modified":"2026-08-11T04:55:30","modified_gmt":"2026-08-11T04:55:30","slug":"1583347-how-to-change-wordpress-upload-limitation-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583347-how-to-change-wordpress-upload-limitation-at-hostinger\/","title":{"rendered":"How to change WordPress upload limitation at Hostinger"},"content":{"rendered":"<p>Change the WordPress upload limitation at Hostinger to increase the maximum file size for media, themes, and plugins.<\/p><h2 id=\"h-increase-the-upload-limit-via-functions-php\">Increase the upload limit via functions.php<\/h2><p class=\"no-margin\">By default, WordPress sets a limit on the file size for uploading to the media gallery as well as for the installation of themes or plugins. Frequently, this limit is lower than that of your hosting account, so if you need to increase it, this guide is for you!<\/p><p class=\"no-margin\">Edit the <b>functions.php<\/b> file that is located in your theme<b> <\/b>folder via <b><a data-click-id=\"hgr-post-content-link-file-manager\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4548688-basic-actions-in-the-file-manager-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">File Manager<\/a><\/b>. The full path would be as follows:<\/p><pre><code>\/domain.tld\/public_html\/wp-content\/themes\/themename\/functions.php<\/code><\/pre><p class=\"no-margin\">Replacing <b>domain.tld<\/b> with your domain and <b>themename<\/b> with the name of your current WordPress theme:<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/1f68007b-d906-43f4-a581-0175279652e7.jpg\" alt=\"Hostinger file manager showing wp-content\/themes\/astra path and the highlighted functions.php file\" data-media-id=\"5325\"><\/div><p class=\"no-margin\">Then, add the following lines of code at the bottom of the file and save the changes:<\/p><pre><code>@ini_set( 'upload_max_size' , '128M' );\r\n@ini_set( 'upload_max_filesize' , '128M' );\r\n@ini_set( 'post_max_size', '64M');\r\n@ini_set( 'max_execution_time', '300' );<\/code><\/pre><p><strong>NOTES<\/strong><\/p><ul>\n<li class=\"no-margin\">As an alternative, you can <b><a data-click-id=\"hgr-post-content-link-increase-the-value-using-the-htaccess-file\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/4622356-how-to-edit-php-values-via-htaccess-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">increase the value using the .htaccess file<\/a><\/b> instead<\/li>\n<li>You can also relate this to your site&rsquo;s <a data-click-id=\"hgr-post-content-link-php-memory-limit\" href=\"https:\/\/www.hostinger.com\/support\/1583711-what-is-php-memory-limit-at-hostinger\/\">PHP memory limit<\/a>, since large uploads may also require sufficient memory to process.<\/li>\n<\/ul><h2 id=\"h-limits-and-upgrades\">Limits and upgrades<\/h2><p class=\"no-margin\">You can only set values for these parameters <b>equal to or lower than your hosting limit<\/b>. If you set a larger value, your hosting plan&rsquo;s maximum value will be applied. If you need to increase your hosting limit, you can <b><a data-click-id=\"hgr-post-content-link-upgrade-your-plan\" class=\"intercom-content-link\" href=\"\/support\/1583459-how-can-i-upgrade-my-hosting-account\/\" target=\"_blank\" rel=\"noopener\">upgrade your plan.<\/a><\/b><\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #d7efdc80;border-color: #1bb15733\">\n<p class=\"no-margin\">If you have access to the <b>php.ini<\/b> file, such as in VPS plans, you can increase the value by following this tutorial: <b><a data-click-id=\"hgr-post-content-link-how-to-increase-the-maximum-file-upload-size-in-wordpress\" class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/tutorials\/how-to-increase-the-maximum-file-upload-size-in-wordpress\/\" target=\"_blank\" rel=\"noopener\">How to Increase the Maximum File Upload Size in WordPress<\/a><\/b><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Increasing WordPress maximum file upload size<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[179],"tags":[],"class_list":["post-1519","post","type-post","status-publish","format-standard","hentry","category-wordpress-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583347-how-to-change-wordpress-upload-limitation-at-hostinger","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583347-como-cambiar-el-limite-de-carga-de-wordpress-en-hostinger","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583347-comment-modifier-la-limite-de-televersement-de-wordpress-chez-hostinger","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583347-cara-mengubah-batasan-upload-wordpress-di-hostinger","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1583347-como-alterar-a-limitacao-de-upload-do-wordpress-hostinger","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583347-\u044f\u043a-\u0437\u043c\u0456\u043d\u0438\u0442\u0438-\u043b\u0456\u043c\u0456\u0442-\u043d\u0430-\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f-\u0444\u0430\u0439","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1519"}],"version-history":[{"count":4,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1519\/revisions"}],"predecessor-version":[{"id":15190,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1519\/revisions\/15190"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}