I’m try to upload 26Mb file. But I’m getting Illuminate Http Exceptions PostTooLargeException. I changed php.ini file and restart nginx, fpm
In my server after running this command I’m getting 250M
php -i | grep "post_max"
post_max_size => 250M => 250M
But my php.ini shows post_max_size 8M
I restrt nginx and fpm but nothing works
I’m still getting this error
Illuminate Http Exceptions PostTooLargeException
2
Answers
First, check your php version
open this file
/etc/php/7.2/fpm/php.ini
Update these 2 fields to something that big enough.
Ex. 1024M or 2048M
as you have setup in php upload size you should also update in nginx config
then restart nginx
sudo servicve restart nginx