Instead of max:4999 use size:4999 and if file will be bigger than 4999, validator will redirect back with error messages laravel.com/docs/5.6/validation#quick-displaying-the-validation-errors
Jul 2, 2018
2
Level 1
Pots to Large Exception
im using laravel 5.4
so i make some validate like this :
$this->validate($request,[
'jenis'=> 'required',
'file'=>'mimes:doc,docx,pdf|max:4999'
]);
and if upload more than 4999 if will get me error like this : https://pasteboard.co/HsDUOQt.png
my question is, how to make the error is not appears, if user upload more than 4999 is just give him error massage like "ur file is too big" in php please, no jquary :) thanks for your help
and im sorry if my english broken, coz english is not my first language :)
Please or to participate in this conversation.