I currently have a form with a file upload, and on that file upload I have a validation that makes sure it's an image or document and also makes sure the size can't be any larger than 2M :
'insurence_document' => 'required|mimes:jpeg,png,jpg,pdf,doc,docx:|max:2048',
But I don't understand, the validation rules I have set should stop it from even getting it's a .zip! It's not even the correct mime type. But if I upload a smaller .zip, it validates fine. So the issue seems to be with larger files.
I error like Warning:
POST Content-Length of 24479807 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Its not aboutthe above error, it's about laravel validation not work with large upload files. I want file size maintain like 2MB only.
I want it done by laravel validation only