You need to validate the incoming request, not the file. There are couple of rules for that: https://laravel.com/docs/9.x/validation#rule-image
https://laravel.com/docs/9.x/validation#rule-mimes
what does an invalid image means?
Is there a way to check if the file validated successfully from the Storage facades.
Storage::putFile('uploads', $request->file('file'))
This is what we have but sometimes the image uploads not working for some reason. I just like to know if there is a way to check like isValid() or something else?
Thanks
Please or to participate in this conversation.