the uploaded file exceeds the upload max filesize directive in php.ini
If you get the message ‘the uploaded file exceeds the upload-max-filesize directive in php.ini. in wordpress‘ when you installing new theme, plugin, image or files.
The issue detected on your server for miximum size for uploaded file.
1) Update your php.ini file
create php.ini file in your File Manager(directory) and apply this code and save
upload_max_filesize = 10M
post_max_size = 11M
max_execution_time = 300
2) Edit your .htaccess file
Goto your file manager and open .htaccess file if your are not able to see .htaccess file, use show hidden options.
Open .htaccess file
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 400M
php_value max_execution_time 180
php_value max_input_time 180
3) Editing wp-config.php File
Goto File Manager use this code at the bottom directly.
Save and close, now try to install a theme, plugin image or file.
Thank you!!! Be Blessed