Home > Software design >  How to change file loading and transfer capacity in Wordpress
How to change file loading and transfer capacity in Wordpress

Time:03-30

I added the following to my .htaccess file, but still can't upload the file.

php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value memory_limit 512M
php_value max_execution_time 600
php_value max_input_time 600

CodePudding user response:

Try adding set_time_limit to wp-config.php

set_time_limit( 600 );

CodePudding user response:

Add the following code to your config.php file.

@ini_set('upload_max_filesize' , '256M');
@ini_set('post_max_size', '256M');
@ini_set('memory_limit', '512M');
@ini_set('max_execution_time', '600');
@ini_set('max_input_time', '600');

CodePudding user response:

With a code or text editor, add the following code to your existing or new php.ini file:

upload_max_filesize = 32M
post_max_size = 64M
memory_limit = 128M
  • Related