Modify WordPress upload file size limit setting (PHP upload large file)

  • Post author:
  • Post category:未分類

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