There are 4 ways that you can choose to increase the maximum upload file size in WordPress.
php_value upload_max_filesize 128M php_value post_max_size 128M php_value memory_limit 256M php_value max_execution_time 300 php_value max_input_time 300
Change the numbers to the values that you need. The max execution time and max input time values are in seconds and might need to be increased further if your internet connection is slow.
To ensure that file uploads work correctly, the post_max_size directive should be a little larger than the upload_max_filesize. For example, the following settings demonstrate how to set a file upload limit to 20 megabytes:
upload_max_filesize = 20M post_max_size = 21M
@ini_set( 'upload_max_filesize' , '128M' ); @ini_set( 'post_max_size', '128M'); @ini_set( 'memory_limit', '256M' ); @ini_set( 'max_execution_time', '300' ); @ini_set( 'max_input_time', '300' );
Reach over to the customer support of your hosting provider and ask them to increase these limits for you
September 03, 2019 at 12:39 pm, Nisha said:
Exactly what I was looking. thanks buddy
November 25, 2019 at 4:23 pm, What you should expect from a WordPress maintenance service - WPorb said:
[…] PHP Memory Limit […]