• An Easy Fix: The Uploaded File Exceeds The upload_max_filesize Directive In php.ini Problem

    June 20th, 2007HARTHmmmm Things, Quickies

    This 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)

    php_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

    Related Posts with Thumbnails

7 responses to “An Easy Fix: The Uploaded File Exceeds The upload_max_filesize Directive In php.ini Problem” RSS icon

  • How does one do this on WP 6.2.1 or higher? There isn’t a “files” management area. 🙁

  • Thanks! I have this problem, I’ll try it and see if it works. 🙂

  • 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???

    • Dan … if you have FTP access, you can just edit the .htaccess file and include the line. My values range between 4M and 64M php_value upload_max_filesize but, mostly 8M in my network.

      If you don’t have FTP access … you probably shouldn’t be doing this. If you have FTP access but want an easier way to do this, go to Plugins, and search for “edit .htaccess” and temporarily activate for use.

Leave a reply