The uploaded file exceeds the upload_max_filesize directive in php.ini

This message “uploaded file exceeds the upload_max_filesize directive in php.ini” will appear in WordPress when you try to upload, it can be images, videos, or some plugins.

The reason of message uploaded file exceeds the upload_max_filesize directive in php.ini

The reason is that there is already a size for uploaded files, videos, or plugins in the upload_max_filesize directive.

This upload_max_filesize directive is present in php.ini file.

How to Fix the uploaded file exceeds the upload_max_filesize directive in php.ini

Change the max file size in php.ini, it you have direct access to the php.ini file, then good, if you do not have access, like in shared hosting, contact your hosting administrator.

Find the variable upload_max_filesize in php.init file , by scrolling the file or using Ctrl + F.

upload_max_filesize = 2M

Change this according to your requirements,

upload_max_filesize = 50M