• Resolved samamerrifield

    (@samamerrifield)


    For some reason I’m unable to upload anything bigger than 2MBs, but there are files and images which are definitely bigger than 2MBs on our website. Whats going on?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    The maximum upload size is controlled at the server-level, not by WordPress. Here are three ways you can increase the upload limit:

    1. If you can edit or override the system php.ini file, increase the maximum file and post sizes. For example, upload_max_filesize = 100M ; and post_max_size = 100M ;

    2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 100M and php_value post_max_size = 100M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 100MB)

    Thread Starter samamerrifield

    (@samamerrifield)

    Is there a reason why the maximum size would have suddenly changed? I only noticed because I had to download a word file to make changes and when I tried to upload it again it failed. There are some files on here that I uploaded myself that are bigger than 2MBs so I know 2MBs wasn’t the original size restriction.

    Moderator James Huff

    (@macmanx)

    It’s controlled at the server level, so I imagine your hosting provider may have updated something that changed that, most likely they updated the version of PHP on your server and didn’t maintain any prior customizations (2MB is generally the default).

    Thread Starter samamerrifield

    (@samamerrifield)

    Weird! I got into the php.ini and it says upload_max_filesize = 50M, I tried to change it to 1000M but nothing happened. WP still complains that only 2MBs are allowed.

    — Update —
    Never mind. That worked. I forgot to refresh the page. Thank you! Merry Christmas

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Suddenly unable to upload files’ is closed to new replies.