Level 63
In your input to upload files, you need to set the name as an array.
Then in your controller you have to loop over this variable and for each file in the array you apply the same code as the one you show in your post.
1 like
hi / if i need upload 3 image with intervention/image for 3 place profile rule and data
how should change this code ?
if ($image = $request->file('image')) {
$destinationPath = 'image/userdata/';
$profileImage = date('YmdHis') . "." . $image->getClientOriginalExtension();
$resize = Image::make($image);
$resize->resize(250, 500);
$resize->save($destinationPath . $profileImage);
$input['image'] = $profileImage;
}
thanks for your help and idea
Please or to participate in this conversation.