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

About bitcoin mining

I have read about bitcoin mining for some time now. I did not know exactly what this is, even though I was learning about electronic coins, but I did not want to deal with it because it required huge computing power to do something like this. The time has passed, however, and here are the devices that allows you to easily and quickly set up your own USB Miner "farms".