Skip to main content

Increasing the max upload filesize [WordPress]

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

Comments

Popular posts from this blog

Mario Kart Tour will arrive on September 25 to iOS and Android

After overcoming some delay, Nintendo has announced that Mario Kart Tour, the first Mario Kart game for smart phones, will land on September 25, 2019 on iOS and Android systems. Fans can now pre-order in the App Store (iOS) and Google Play (Android) .