Forums

Error saving media attachment when file size is over 2MB (8 posts)

  1. nicole2292
    Member
    Posted 9 months ago #

    Hello all,

    I know the topic of increasing the maximum upload file size to greater than 2MB has been done to death. Believe me I have read all the posts on this topic and tried all of the suggested solutions. However I am still having problems with this.

    I have tried many methods of increasing the file size including htaccess, the functions file and php.ini. Although the php.ini file is working correctly on the server in the wordpress media library is still says "Maximum upload file size: 2MB".

    This is not the server limiting it as you can see at http://www.milkfurniture.com/wordpress/phpinfo.php the values are in fact 64MB.

    Why then does wordpress still say 2MB in the admin panel media manager and why does it fail with the error "Error saving media attachment" when I attempt to upload a file greater than 2MB?

    Thankyou,

    Nicole

  2. vtxyzzy
    Member
    Posted 9 months ago #

    If you are using WP Multisite, there is a Network Admin setting that will override all of the others. Go to Network Admin->Settings and change the 'Max upload file size'.

  3. nicole2292
    Member
    Posted 9 months ago #

    Thanks for the response, however this is just a single site not a multi-site installation.

    Any other suggestions?

  4. vtxyzzy
    Member
    Posted 9 months ago #

    Look for a theme option that sets the size. If you don't find that, it may be hard-coded in your functions.php file. Look for an add_filter for upload_size_limit:

    add_filter('upload_size_limit', ...);

  5. kostas123
    Member
    Posted 9 months ago #

    Open the wp_config.php file and append :

    define('WP_MEMORY_LIMIT' , '64M');

    The file is in the root directory of your WordPress installation .

  6. mjefferson96
    Member
    Posted 9 months ago #

    Sorry, define('WP_MEMORY_LIMIT' , '64M'); didn't work for me. Arrrg!

  7. jennettefulda
    Member
    Posted 9 months ago #

    @vtxyzzy - Thanks for the WP Multisite fix! That's been stumping me for days but now it's fixed.

  8. weez1l
    Member
    Posted 7 months ago #

Reply

You must log in to post.

About this Topic