{"id":161,"date":"2010-08-17T13:02:16","date_gmt":"2010-08-17T10:02:16","guid":{"rendered":"http:\/\/www.phpsugar.com\/blog\/?p=161"},"modified":"2010-08-17T13:02:16","modified_gmt":"2010-08-17T10:02:16","slug":"how-to-increase-file-uploads","status":"publish","type":"post","link":"https:\/\/www.phpsugar.com\/blog\/2010\/08\/how-to-increase-file-uploads\/","title":{"rendered":"How to increase your file upload limit"},"content":{"rendered":"<p>Some customers have been reporting problems with uploading large files via the Admin upload form.<\/p>\n<p>The bad news\u00a0 is that this is a limitation from your hosting provider and not from PHP Melody; so we can&#8217;t do much about it.<\/p>\n<p>The good news is that with a few changes you may be able to alter\/overwrite your hosting&#8217;s php configuration.<\/p>\n<h3><!--more--><strong>Method 1: <\/strong><em>using php.ini<\/em><\/h3>\n<p style=\"padding-left: 30px;\">Create a new file called <em>php.ini<\/em> and place it in your PHP Melody&#8217;s installation folder. Add these lines to your <em>php.ini<\/em>:<br \/>\n<code><br \/>\npost_max_size = 100M<br \/>\nupload_max_filesize = 100M<br \/>\n<\/code><\/p>\n<h3><strong>Method 2: <\/strong><em>using .htaccess<\/em><\/h3>\n<p style=\"padding-left: 30px;\">PHP Melody already comes with a <em>.htaccess<\/em> file so be careful not to remove anything when adding those two lines to your existing <em>.htacces<\/em>:<br \/>\n<code><br \/>\nphp_value post_max_size 100M<br \/>\nphp_value upload_max_filesize 100M<\/code><\/p>\n<p style=\"padding-left: 30px;\">\n<p>In both examples you can change <em>100M<\/em> to your desired value.<\/p>\n<p>If none of these methods work, you may want\u00a0 to contact your host and ask for these values to be increased.<\/p>\n<p>Enjoy! \ud83d\ude09<\/p>\n<p>Questions? Feel free to leave a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some customers have been reporting problems with uploading large files via the Admin upload form. The bad news\u00a0 is that this is a limitation from your hosting provider and not from PHP Melody; so we can&#8217;t do much about it. The good news is that with a few changes you may be able to alter\/overwrite [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,1],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-development","category-misc"],"_links":{"self":[{"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":8,"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpsugar.com\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}