Due to the default WordPress Upload File Size limit. We need to customize and modify the size of the uploaded file, which can be achieved through several methods.
1. Edit the wp-config.php file
Add to the WordPress configuration file:
@ini_set(‘upload_max_size’ , ‘256M’ );
2. Edit the php.ini file
Find upload_max_filesize to modify its value size. Here, you can also adjust its value.
upload_max_filesize = 256M post_max_size = 256M memory_limit = 512M max_execution_time = 180
After saving, we restart the server to take effect.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge