Using WordPress to upload videos (or other files), it may turn out that you need to upload a file larger than the maximum limit set by WordPress. This should no be a significant, you can increase the size of the allowed upload file. To increase the upload size, you must adjust some or all the following PHP variables:
- WP_MEMORY_LIMIT
- upload_max_filesize
- post_max_size
- max_execution_time
Must and may changes are as following. To increase the upload size, you must increase the upload_max_filesize and post_max_size. If the file is large enough, you may need to increase the size for memory_limit, max_execution_time and max_input_time.
The changes may be made in two locations. They may be made in your php.ini file or your .htaccess file. You may not change them by modifying your wp_config.php file adding an ini_set. Using ini_set in wp_config.php might be your first instinct, but, that will not work.
To keep the change more localized, modify the .htaccess file with the following code (changing the upload preference size as needed for your situation)
<IfModule mod_php5.c>
php_value memory_limit 64M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 600
php_value max_input_time 600
</IfModule>
If you prefer to change php.ini, you can add the following to th php.ini file as needed in your situation
memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 600
max_input_time = 600