Tuesday, January 14, 2014

PHP : Wordpress : Increase media file size

Working on WordPress was a great change for me. But for media upload I wanted to increase the upload size for file selected. Checked several plugins but was not working properly. One of the comment by Shane G on WordPress support site I found useful.

Just add below code in .htaccess file.
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200
And it works like a charm.