roviroy's avatar

Multiple Image Upload

Hi Guys,

is there anyone here know how to create a multiple image upload in Larve 5.4?..

I'm trying to create one, but I am stuck at image file validation

$this->validate(request(), [ $this->validate(request(), [ 'image' => 'required', Rule::in(['jpeg', 'png', 'bmp', 'gif', 'svg']), ] );

0 likes
1 reply
AddWebContribution's avatar

I think you should change your image validation like :

$this->validate($request, [
    'image' => 'required',
    'image.*' => 'image|mimes:jpeg,png,jpg,gif,svg,bmp|max:2048'
    ]);

Hope this work for you !

Please or to participate in this conversation.