I need to change Wordpress Maximum upload file size to something more than 2mb. I have changed max upload file size in Multisite Settings to 19500. I also edited php.ini changing post_max_size to 25M, upload_max_filesize to 20M and memory_limit to 128M. What else do I need to do in order to achieve my goal? I'm on localhost on mac.
1
votes
Can you please share what values you entered for multisites and php.ini
– mw509
sure, i've edited the question
– DuchSuvaa
what of in multisites? what values are there? am asking cos multisites takes values in kilobytes(KB) so 1,500 means 1.5mb. its a common error we all make.
– mw509
sorry, forgot to insert that value, but it's inserted now, too. 19500
– DuchSuvaa
ok. just posted an answer. lets see if that helps.
– mw509
2 Answers
3
votes
Alright, here are a few solutions I can think of for a localhost user. With localhost, I assume you have full control so try the below options if any works let me know.
.htaccess Edit the .htaccess file in your WordPress site’s root folder and add the following code:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Theme functions add the following code to the theme’s functions.php file, you can increase the upload size:
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
let me know if any of this works.
-2
votes
If you don’t want coding, directly increase max upload size through this free plugin https://ziscom.today/max-upload-size/
After installation go to WordPress menu ‘Max Upload Size’ * Only enter the numeric value in bytes * 1024 bytes = 1KB * 1048576 bytes = 1MB
It worked for me. Hope it help for you.