How to decrease the max file upload size without using php.ini or htaccess? August 24, 2022 by Tarik Billa At the top of your wp-config.php file: ini_set('upload_max_filesize','4M');