The Secret Life of the HART-Empire Network .. You Are Here … So Shine On!
  • An Easy Fix: The Uploaded File Exceeds The upload_max_filesize Directive In php.ini Problem

    3
    scissors
    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.

    wordpress-freaking-annoying.jpg

    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 WORDPRESS

    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

    Check These Out!


  • Comments protected by Lucia's Linky Love.

3 Responses to “An Easy Fix: The Uploaded File Exceeds The upload_max_filesize Directive In php.ini Problem”

  1. How does one do this on WP 6.2.1 or higher? There isn’t a “files” management area. :-(

  2. Thanks! I have this problem, I’ll try it and see if it works. :)

  3. 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 ..

Additional comments powered by BackType