The uploaded file exceed the upload_max_filesize directive in php.ini

The uploaded file exceed the upload_max_filesize directive in php.ini

Problem

My programmer has this error while uploading file in wordpress

Solution

Find php.ini file location

php -i | grep ‘php.ini’

Change this value inside in php.ini

upload_max_filesize = 12M
post_max_size = 13M
memory_limit = 15M

Or add this code to first line of .htaccess file (is located in WordPress installation directory)

php_value upload_max_filesize 12M
php_value post_max_size 13M
php_value memory_limit 15M

Note:

Change the file size with your case study

Reference

https://stackoverflow.com/questions/8684609/where-can-i-find-php-ini
https://kinsta.com/knowledgebase/the-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini/

Please follow and like us:
Pin Share