{"id":3312,"date":"2013-08-07T23:34:32","date_gmt":"2013-08-07T23:34:32","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=3312"},"modified":"2014-06-26T23:55:41","modified_gmt":"2014-06-26T23:55:41","slug":"how-to-upload-more-than-2mb-default-limit-by-wordpress","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/techs\/how-to-upload-more-than-2mb-default-limit-by-wordpress.html","title":{"rendered":"How To Upload More Than 2Mb Default Limit By WordPress"},"content":{"rendered":"<blockquote>\n<p style=\"text-align: center;\">04\/26\/2014\u00a0<em>Update with version 3.9 &#8211; sample .htaccess where \/wp39\/ is \/blogname\/<\/em><\/p>\n<p style=\"text-align: left;\"># BEGIN WordPress<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\n&lt;IfModule mod_php5.c&gt;<br \/>\nphp_value upload_max_filesize 30M<br \/>\nphp_value post_max_size 30M<br \/>\n&lt;\/IfModule&gt;<br \/>\nRewriteEngine On<br \/>\nRewriteBase \/wp39\/<br \/>\nRewriteRule ^index\\.php$ &#8211; [L]<br \/>\nRewriteCond %{REQUEST_FILENAME} !-f<br \/>\nRewriteCond %{REQUEST_FILENAME} !-d<br \/>\nRewriteRule . \/wp39\/index.php [L]<br \/>\n&lt;\/IfModule&gt;<br \/>\n# END WordPress<\/p>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/F759CSABaco?rel=0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p style=\"text-align: center;\">for version 3.9 just edit the .htaccess and add these 2 lines just below &lt;IfModule &#8230;&gt;<br \/>\n&lt;IfModule mod_rewrite.c&gt;<br \/>\n&lt;IfModule mod_php5.c&gt;<br \/>\nphp_value upload_max_filesize 30M<br \/>\nphp_value post_max_size 30M<br \/>\n&lt;\/IfModule&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><em>When I import all my posts of a blog, sometimes it&#8217;s bigger than the 2MB limit by WordPress. Normally, it&#8217;s defined in the php.ini, but I don&#8217;t seem to have it. I found a way on the internet to fix it, adding some lines in the .htaccess of the WordPress directory. These are the codes.<\/em><\/p>\n<blockquote>\n<p style=\"text-align: left;\">&lt;IfModule mod_php5.c&gt;<br \/>\nphp_value upload_max_filesize 30M<br \/>\nphp_value post_max_size 30M<br \/>\n&lt;\/IfModule&gt;<\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><a class=\"preview\" href=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/import2mb.jpg\" rel=\"lightbox[upload]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3313\" src=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/import2mb-300x132.jpg\" alt=\"limit 2MB default\" width=\"300\" height=\"132\" srcset=\"https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/import2mb-300x132.jpg 300w, https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/import2mb.jpg 610w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" href=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/htaccess.jpg\" rel=\"lightbox[upload]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3314\" src=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/htaccess-300x197.jpg\" alt=\"Edit .htaccess\" width=\"300\" height=\"197\" srcset=\"https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/htaccess-300x197.jpg 300w, https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/htaccess.jpg 470w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><a class=\"preview\" href=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/importfix.jpg\" rel=\"lightbox[upload]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3315\" src=\"\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/importfix-300x143.jpg\" alt=\"Now It's 30MB limit\" width=\"300\" height=\"143\" srcset=\"https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/importfix-300x143.jpg 300w, https:\/\/www.dognmonkey.com\/techs\/wp-content\/uploads\/2013\/08\/importfix.jpg 590w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\"><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/lZsXQ1KrObU\" width=\"560\" height=\"315\" frameborder=\"0\"><\/iframe><\/p>\n<p style=\"text-align: center;\"><ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul><\/p>\n","protected":false},"excerpt":{"rendered":"<p>04\/26\/2014\u00a0Update with version 3.9 &#8211; sample .htaccess where \/wp39\/ is \/blogname\/ # BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; &lt;IfModule mod_php5.c&gt; php_value upload_max_filesize 30M php_value post_max_size 30M &lt;\/IfModule&gt; RewriteEngine On RewriteBase \/wp39\/ RewriteRule ^index\\.php$ &#8211; [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . \/wp39\/index.php [L] &lt;\/IfModule&gt; # END WordPress for version 3.9 just edit the .htaccess and <a href=\"https:\/\/www.dognmonkey.com\/techs\/how-to-upload-more-than-2mb-default-limit-by-wordpress.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,365],"tags":[364,363],"class_list":["post-3312","post","type-post","status-publish","format-standard","hentry","category-uncategorized","category-wp_installation","tag-htaccess","tag-upload-size-limit"],"views":3328,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/3312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/comments?post=3312"}],"version-history":[{"count":10,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/3312\/revisions"}],"predecessor-version":[{"id":3884,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/posts\/3312\/revisions\/3884"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/media?parent=3312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/categories?post=3312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/techs\/wp-json\/wp\/v2\/tags?post=3312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}