How to Fix WordPress Error “The uploaded file exceeds the upload_max_filesize directive in php.ini”

There are many ways to fix this error, in this article, I will show you how to fix it by updating “.htaccess” file.

CHECK YOUR CURRENT LIMITATIONS:

From your WordPress Dashboard: Tools -> Site Health -> Info -> Media Handling

You would see some Max size setup here, If you try to upload a file bigger than the current value, it will throw an error for sure.

STEPS TO FIX IT:

Step 1: Go to your WordPress folder and open the file “.htaccess”

Step 2: Adding some new lines, below is an example set new value to 50M, you can set whatever number that you want

php_value upload_max_filesize 50M
php_value post_max_size 50M

As below screenshot

Step 3: Save the file and check the Media Handling again

Now you should be able to upload the file and the issue should gone.


Comments

One response to “How to Fix WordPress Error “The uploaded file exceeds the upload_max_filesize directive in php.ini””

  1. I know this website gives quality dependent articles and additional stuff,
    is there any other website which gives these kinds
    of stuff in quality?

    Here is my blog post – John E. Snyder

Leave a Reply

Your email address will not be published. Required fields are marked *