Hi,
either i put my code validation in controller or in form request , rules i put does not recognize type of file i'm trying to upload and display this message :
--> The filename must be a file of type: image/jpg.
here is my rule, simple :
return [
'filename' => 'required|mimetypes:image/jpg',
];
i also try with extension : mimes:jpg,jpeg,png ..... no success ..
and here is my form
<form method="post" action="{{url('create')}}" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="form-group col-md-4">
<input type="file" name="filename[]" class="form-control" multiple="multiple">
</div>
</div>
....
some idea ? thank you !