Increasing the max upload filesize [WordPress]

Increasing the max upload filesize [WordPress]
August 11, 2014 04:07:37

If your server's default upload file size is too small, is a problem if you want to upload a large file. If you get this error, "The uploaded file exceeds the upload_max_filesize directive in php.ini", here is what you can do.

If you have access to the 'php.ini' file, you can change the settings below:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Next, if the above solution is difficult to you, open your index.php file and put this piece of code:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

The third way is like the above. Open your ".htaccess" file with an editor and put the below values in:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300

Last, you can create a file called ".user.ini" and add your values
in. Then, put this file in the same directory as ypur index.php script:
upload_max_filesize = 150M
post_max_size = 150M