I can't test now but I do believe that you can only use comma separated values
'files' => 'required|mimes:jpeg,jpg,png'
Thanks for your answer, I've also tested this and it doesn't work. //edit: ok I got it, the problem was that I called the field "files[]" if I remove the [] it works. so the field must look like this:
{{ Form::file('files', array('multiple'=>true)); }}
Now the user can upload multiple files and the validation works also!
cherrycoding said:
Thanks for your answer, I've also tested this and it doesn't work. //edit: ok I got it, the problem was that I called the field "files[]" if I remove the [] it works. so the field must look like this:
{{ Form::file('files', array('multiple'=>true)); }}
Now the user can upload multiple files and the validation works also!
No didn't work for me and if you uploading multiple it should be files[]
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community