Checking file name as well

Hi

I can check the file extension by calling onAddFile. How would I also check the filename - with a second call to onAddFile? Or just add come validation to the first onAddFile?

just add —čome validation to the first onAddFile.