Focus on cloud service provider activities
Notes on website operation and maintenance

Two methods to modify the file size limit file parameter upload_max_filesize of WordPress uploaded files

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.

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Two methods to modify the file size limit file parameter upload_max_filesize of WordPress uploaded files


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge