Last active
June 25, 2019 11:36
-
-
Save peiris/1605f3f68d7dd7ecf29dd2870964e317 to your computer and use it in GitHub Desktop.
How to Increase Maximum Upload File Size in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Update .htaccess file | |
| 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 | |
| OR | |
| 2. Update wp-config.php file | |
| @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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment