{"id":45370,"date":"2015-04-01T06:15:07","date_gmt":"2015-04-01T10:15:07","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=45370"},"modified":"2016-02-22T10:44:17","modified_gmt":"2016-02-22T15:44:17","slug":"wordpress-how-to-increase-maximum-upload-size","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/wordpress-how-to-increase-maximum-upload-size.html","title":{"rendered":"WordPress. How to increase maximum upload size"},"content":{"rendered":"<p>\r\n<p>This tutorial will show you how to increase the maximum upload size in php.ini file of any WordPress installation.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=FyyZBirxjUU?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to increase maximum upload size<\/a><\/p>\r\n<p>The error like <strong>File_&#8221;name&#8221; has failed to upload due to an error &#8211; This file exceeds the maximum upload size for this site<\/strong> is one the most common errors that occur in WordPress and other PHP-based programs that use the php.ini for certain settings. You will need to increase the allowed memory in your <strong>php.ini<\/strong> file.<\/p>\r\n<p>The instructions below will show you how to fix the php memory error by adjusting the appropriate sections of your local files. There are 4 ways:<\/p>\r\n<ol>\r\n<li>\r\n<p>The first way is the following:<\/p>\r\n<ol>\r\n<li>\r\n<p>Log into your <strong>cPanel.<\/strong><\/p>\r\n<\/li>\r\n<li>\r\n<p>Scroll down to <strong>Files<\/strong> section and open the <strong>File Manager.<\/strong><\/p>\r\n<\/li>\r\n<li>\r\n<p>Select <strong>public_html<\/strong> root from the available ones.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Locate <strong>php.ini<\/strong> file in your root. Click on the file name to edit it with File Manager editors:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-uplod-size.1.1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-uplod-size.1.1-300x180.jpg\" alt=\"how to increase maximum uplod size.1.1\" width=\"300\" height=\"180\" class=\"aligncenter size-medium wp-image-45371\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-uplod-size.1.1-300x180.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-uplod-size.1.1-150x90.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-uplod-size.1.1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>Change the line in php.ini. If your line shows 32M, try to change it to 128M. Maximum amount of memory a script may consume is 128MB.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Click the <strong>Save Changes<\/strong> button to save your changes:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.1.2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.1.2-300x70.jpg\" alt=\"how to increase maximum upload size.1.2\" width=\"300\" height=\"70\" class=\"aligncenter size-medium wp-image-45372\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.1.2-300x70.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.1.2-150x35.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.1.2-1024x241.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.1.2.jpg 1270w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<\/ol>\r\n<\/li>\r\n<li>\r\n<p>If you don&#8217;t have access to php.ini, try adding this to  <strong>.htaccess<\/strong> file:<\/p>\r\n<pre>php_value memory_limit 64M<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.1-300x157.jpg\" alt=\"how to increase maximum upload size.2.1\" width=\"300\" height=\"157\" class=\"aligncenter size-medium wp-image-45373\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.1-300x157.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.1-150x78.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.1.jpg 950w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.2-300x70.jpg\" alt=\"how to increase maximum upload size.2.2\" width=\"300\" height=\"70\" class=\"aligncenter size-medium wp-image-45374\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.2-300x70.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.2-150x35.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.2-1024x240.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.2.2.jpg 1280w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>If you again don&#8217;t have access to php.ini, the third way is to add this line to your <strong>wp-config.php<\/strong> file:<\/p>\r\n<pre class=\"brush:php\">\r\n\t# Increasing memory allocated to PHP \r\n\tdefine('WP_MEMORY_LIMIT', '64M');\r\n<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.1-300x225.jpg\" alt=\"how to increase maximum upload size.3.1\" width=\"300\" height=\"225\" class=\"aligncenter size-medium wp-image-45375\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.1-300x225.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.1-150x112.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.1.jpg 930w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.2-300x179.jpg\" alt=\"how to increase maximum upload size.3.2\" width=\"300\" height=\"179\" class=\"aligncenter size-medium wp-image-45376\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.2-300x179.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.2-150x89.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.2-1024x612.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.3.2.jpg 1270w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>The forth and the last way out is creating your own <strong>php.ini<\/strong> file with the following line inserted and adding it to <strong>wp-admin<\/strong> folder:<\/p>\r\n<pre>\r\n  memory_limit = 128M\r\n<\/pre>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.1-300x210.jpg\" alt=\"how to increase maximum upload size.4.1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-45377\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.1-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.1-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.2-300x192.jpg\" alt=\"how to increase  maximum upload size.4.2\" width=\"300\" height=\"192\" class=\"aligncenter size-medium wp-image-45378\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.2-300x192.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.2-150x96.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.2-1024x657.jpg 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.2.jpg 1245w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.3-300x180.jpg\" alt=\"how to increase maximum upload size.4.3\" width=\"300\" height=\"180\" class=\"aligncenter size-medium wp-image-45379\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.3-300x180.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.3-150x90.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/04\/how-to-increase-maximum-upload-size.4.3.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<\/ol>\r\n<p>Please remember that maximum uploads size settings depend, in most cases, on your server. Therefore, if none of the remedies presented in our tutorial helps, feel free to contact your hosting provider.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=FyyZBirxjUU?width=1280&amp;height=720\" rel=\"prettyPhoto\">WordPress. How to increase maximum upload size<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to increase the maximum upload size in php.ini file of any WordPress installation.<\/p>\n","protected":false},"author":67,"featured_media":45382,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[728],"tags":[1390,949,546,2405],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45370"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/67"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=45370"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/45370\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/45382"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=45370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=45370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=45370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}