What I have
I created a very simple multiple image uploader in Laravel 6. The code of the view and the controller are the following:
View:
<form action="{{ route('create') }}" method="POST" enctype="multipart/form-data">
@csrf
<input name="images[]" type="file" multiple="multiple" />
</form>
Controller:
function create(Request $request) {
$this->validate($request, [
'images.*' => 'image',
]);
foreach($request->images as $image) {
// $filename = 'IMG_1921.jpg'
$filename = $image->getClientOriginalName();
// $path = 'uploads/IMG_1921.jpg'
$path = $image->storeAs('uploads', $filename);
// $absolutePath = 'C:\htdocs\laravel-test\storage/uploads/IMG_1921.jpg'
$absolutePath = sprintf('%s/%s', storage_path(), $path);
// crash here
// $data = getimagesize($absolutePath);
}
return 'ok';
}
The problem
All works fine until I uncomment the line of the getimagesize($absolutePath) function. I also tried with filesize($absolutePath) and the same error is given:
Argument 1 passed to Facade\FlareClient\Context\RequestContext::Facade\FlareClient\Context{closure}() must be an instance of Symfony\Component\HttpFoundation\File\UploadedFile, array given
I don't understand why this error is showed if getimagesize() doesn't use any UploadedFile object.
More information about the error:

dd($absolutePath)and comment the resultdd($absolutePath)returns"C:\htdocs\laravel-test\storage/uploads/IMG_1921.jpg".gettype($absolutePath)returnsstring.