krex's avatar
Level 4

File Form Validation

Hi, I am working on Multi and single Image upload system for a blog. My cole looks like this: {!! Form::file('images[]', ['class' => 'file-input', 'multiple']) !!} But if I try to validate it from a Request using rules() ex. return[ 'images' =>'required]', id does not work. If I leave the file input empty it goes trough without error. I tried Form::file('images'... ) the same thing. So I was forced to create a Validate model. But Is it possible to validate before the request hits the Controller? Thanks. Best regards

0 likes
1 reply

Please or to participate in this conversation.