{"id":397,"date":"2008-12-03T14:02:00","date_gmt":"2008-12-03T22:02:00","guid":{"rendered":"http:\/\/www.codebelay.com\/blog\/?p=397"},"modified":"2008-12-03T14:02:00","modified_gmt":"2008-12-03T22:02:00","slug":"file-upload-configuration-with-php-and-iis","status":"publish","type":"post","link":"https:\/\/www.codebelay.com\/blog\/2008\/12\/03\/file-upload-configuration-with-php-and-iis\/","title":{"rendered":"File Upload Configuration with PHP and IIS"},"content":{"rendered":"<p>In php.ini it&#8217;s important that these two variables are set right:<br \/>\nupload_max_filesize = 2M<br \/>\npost_max_size = 8M<\/p>\n<p>Very often people will up the upload_max_filesize to something like 20M without updating the post_max_size.<\/p>\n<p>Then if you&#8217;re on IIS, there is one more gotcha.<\/p>\n<p>There&#8217;s an upload setting in C:\\WINNT\\system32\\inetsrv\\MetaBase.xml &#8212; the default is 200KB. Up that to what you think is necessary for your web app.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In php.ini it&#8217;s important that these two variables are set right: upload_max_filesize = 2M post_max_size = 8M Very often people will up the upload_max_filesize to something like 20M without updating the post_max_size. Then if you&#8217;re on IIS, there is one more gotcha. There&#8217;s an upload setting in C:\\WINNT\\system32\\inetsrv\\MetaBase.xml &#8212; the default is 200KB. Up that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[56],"tags":[232,391,233],"class_list":["post-397","post","type-post","status-publish","format-standard","hentry","category-php","tag-iis","tag-php","tag-uploading-files"],"_links":{"self":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":0,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebelay.com\/blog\/wp-json\/wp\/v2\/tags?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}