{"id":943,"date":"2015-01-12T23:28:45","date_gmt":"2015-01-12T23:28:45","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=943"},"modified":"2015-01-12T23:34:30","modified_gmt":"2015-01-12T23:34:30","slug":"wordpress-changing-maximum-upload-size","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2015\/wordpress-changing-maximum-upload-size","title":{"rendered":"WordPress: Changing Maximum Upload Size"},"content":{"rendered":"<p><img decoding=\"async\" style=\"float:right\" src=\"http:\/\/www.advancedwebhelp.com\/blog\/wp-content\/uploads\/2013\/11\/wordpress-logo-s.png\" \/><\/p>\n<p>Using WordPress to upload videos (or other files), it may turn out that you need to upload a file larger than the maximum limit set by WordPress.   This should no be a significant, you can increase the size of the allowed upload file.  To increase the upload size, you must adjust some or all the following PHP variables:<\/p>\n<ul>\n<li>WP_MEMORY_LIMIT<\/li>\n<li>upload_max_filesize<\/li>\n<li>post_max_size<\/li>\n<li>max_execution_time<\/li>\n<\/ul>\n<p>Must and may changes are as following.  To increase the upload size, you must increase the upload_max_filesize and post_max_size.   If the file is large enough, you may need to increase the size for memory_limit,  max_execution_time and max_input_time.<\/p>\n<p>The changes may be made in two locations.  They may be made in your php.ini file or your .htaccess file.   You may not change them by modifying your wp_config.php file adding an ini_set.   Using ini_set in wp_config.php might be your first instinct, but, that will not work.<\/p>\n<p style=\"clear: both ;\">To keep the change more localized, modify the .htaccess file with the following code (changing the upload preference size as needed for your situation)<\/p>\n<pre><code>\r\n    &lt;IfModule mod_php5.c>\r\n        php_value memory_limit 64M\r\n        php_value upload_max_filesize 64M\r\n        php_value post_max_size 64M\r\n        php_value max_execution_time 600\r\n        php_value max_input_time 600\r\n    &lt;\/IfModule>\r\n\r\n<\/code><\/pre>\n<p style=\"clear: both;\">If you prefer to change php.ini, you can add the following to th php.ini file as needed in your situation<\/p>\n<pre><code>\r\n    memory_limit = 64M\r\n    upload_max_filesize = 64M\r\n    post_max_size = 64M\r\n    max_execution_time = 600\r\n    max_input_time = 600\r\n\r\n<\/code><\/pre>\n<div style=\"clear: both  ; height: 4em ;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Using WordPress to upload videos (or other files), it may turn out that you need to upload a file larger than the maximum limit set by WordPress. This should no be a significant, you can increase the size of the allowed upload file. To increase the upload size, you must adjust some or all the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,4,5,6],"tags":[],"class_list":["post-943","post","type-post","status-publish","format-standard","hentry","category-htaccess","category-html5","category-php","category-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=943"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/943\/revisions"}],"predecessor-version":[{"id":949,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/943\/revisions\/949"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}