Is there a way to validate that the File Upload component upload a file?

Is there a way to validate that the File Upload component upload a file?

I would like my File Upload component to only load a file if it meets a specific validation. Is there any way to do it?