WordPress limits the file size you can upload through the Media Library. The limit is set by PHP settings on the server. Here are three ways to increase it. For more on troubleshooting image upload errors.
Option 1 – .htaccess file:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300Option 2 – wp-config.php file:
@ini_set( 'upload_max_filesize', '64M' );
@ini_set( 'post_max_size', '64M' );
@ini_set( 'max_execution_time', '300' );Option 3 – php.ini file:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300Replace 64M with your desired size.