Method one: modify functions.php
The first way is to modify the functions.php of the WordPress theme, add these lines of settings, and the various settings in it are adjusted according to individual needs:
@ini_set( ‘upload_max_filesize’, ’16M’ ); // Single file size limit