Here is How to Increase Maximum Upload File Size in WordPress:
Increase Maximum Upload File Size using the .htaccess file
Change the numbers to the values that you need:
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
Increase Maximum Upload File Size using wp-config.php
Open up your wp-config.php file and add the following code inside:
@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' );
Increase Maximum Upload File Size in WordPress using php.ini
NOTE: To ensure that file uploads work correctly, the post_max_size directive should be a little larger than the upload_max_filesize.
upload_max_filesize = 16M
post_max_size = 32M
Increase Maximum Upload File Size using a plugin
Increase upload file size limit to any value with one click.
The plugin automatically detects upload limits set by WordPress and by the server/hosting provider, and displays them.
Nothing from the above solutions works? Contact your hosting provider and ask them to increase these limits for you.
Was this post helpful?
Let me know if you liked the post. That’s the only way I can improve. 🙂