Hi All Please help Me
Where upload file 150MB is Successfully
But file 170MB Show Error Illuminate \ Session \ TokenMismatchException
on server php.ini
post_max_size 200M
upload_max_filesize 250M
Might need to up the time out time. Also file size is not all. Meaning different types upload differently. png vs MP3 of the same size the MP3 will take longer.
That error is not related to file size, it's a session issue, or perhaps a CSRF issue. How are you doing the uploads, what does the route look like, what does the controller look like, etc.. there's much to understand to be able to debug this, but I am 99% certain it has nothing to do with your upload file size.
ok great. now we get another error. This one instead say that you need to increase the upload_max_filesize in php.ini or client_max_body_size in nginx config which has to do with the allowed file size to upload. reference
Edit: sorry I forgot to ask, what stack are you developing on? If homestead, then run sudo service php5-fpm restart
is it nginx? You may need to update the nginx config as well if so. Also, there may be different settings for php-fpm than those in php.ini.
Add a call to phpinfo() somewhere accessible (usually a file like info.php in your public directory with the following contents is sufficient)
<?php
phpinfo();
That'll let you see all the php settings in play when running with the webserver, vs using php on the cli.
If you're running nginx, you may need to update it's config to allow for larger max body size... These are the settings I've used on my production server for several years without any issue: