-
An Easy Fix: The Uploaded File Exceeds The upload_max_filesize Directive In php.ini Problem
0June 20th, 2007Hmmmm Things, QuickiesThis has got to be the second most annoying feature that I’ve noticed in EVERY SINGLE BLOG that has been upgraded to the latest wordpress version 2.2. The first being that my Iimage Browser Plugin does not work because it requires one file to be placed in the wp-admin folder .. and my InstantUpgrade plugin deletes it every time there is an upgrade to my blog, initiated by me.
I’m sorry – I can’t remember who said this, or where I found it .. although I’m almost sure it was in the WordPress Support Forums..
In your WordPress Admin …..
1) MANAGE
2) FILES
3) SELECT .htaccess (for rewrite rules)
4) PLACE THE FOLLOWING UNDER THE LAST LINE BEFORE # BEGIN WORDPRESSphp_value upload_max_filesize 2M
Thanks it. 2M is 2MB so, if you need something larger for uploading video files or audio files you can change it there. So .. your .htaccess file might look like something like this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^hart-empire.com [NC]
RewriteRule (.*) www.hart-empire.com/$1 [R=301,L]
php_value upload_max_filesize 2M# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
These Posts May (or may not) Be Related!
7 responses to “An Easy Fix: The Uploaded File Exceeds The upload_max_filesize Directive In php.ini Problem” 
-
How does one do this on WP 6.2.1 or higher? There isn’t a “files” management area. 🙁
-
Hi Shellz .. Let us know how this worked for you!
Generally, I think the numbers have to be exponential or something .. like 2M .. 4M .. 8M .. 16M … 32M ..
-
I coulden’t install my theme because of a file size error. I found lots of forum questions about this error but not many answers. Thanks for the easy to follow tip. files size problem solved!
-
I have this error but when I log into my admin i don’t appear to have a manage -> files option. I’m using 3.3.1 . I’m guessing things might have changes since 2007???
Lancer June 6th, 2009 at 18:09