Level 15
Do you mean you wish to do this all without a page refresh? Or are you just asking how you validate file uploads?
If you are looking for information on laravel validation, there is information here about validation: https://laravel.com/docs/7.x/validation#introduction
You can validate against if it is a file, and acceptable file types too.