I'm running a WordPress site (not MU), I have set upload_max_filesize = 50M, post_max_size=50M in php.ini. The results of phpinfo() function show the value to be 50M but in WordPress Media uploader Max upload file size is still 32M.
I have also tried to write this code in the theme's functions.php:
@ini_set( 'upload_max_size' , '50M' );
@ini_set( 'post_max_size', '50M');
Also tried deactivating all plugins, changed theme but no resort, WordPress still says 32 Mb.
Can anyone guide me what can be wrong here?
I had the same problem, and the other answers didn't completely work for me, and I'm apparently not alone, so here's what I did to make it work.
Notes:
Supposedly, you can do "php -i | grep php.ini" to see which configuration file is being used, but changing the indicated file did not work for me. I changed one that lived at /etc/php5/apache2/php.ini to make it work. Some trial and error will be needed, but give this a shot.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With