php - Laravel file upload validation doesn't trigger - TokenMismatchException -


i can upload files if fitting validation rule

'user_file' => 'file|max:10240|mimes:xls,xlsx,doc,docx,pdf,zip' 

all goes fine.

i have set upload_max_filesize 32mb , post_max_size 40mb in php.ini

but if try upload file bigger 40mb validation rules don't trigger. tokenmismatchexception error....

if can verify trying upload big file (a video file example)

when exceed post payload size - dropped, csrf_token not come laravel , upload file empty cannot validated.

update

to fix need check file size before uploading javascript or jquery

here example:

how check file input size jquery?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -