Validate Existing file via FileValidator

How to validate existing file in Yii2 framework?

I ask this question here:

Maybe someone already write fork of FileValidator works on existing files instead of UploadedFile?

I am not sure of exactly what you are trying to achieve but why not just validate the file before uploading it?

More details:

  1. user upload a zip archive

  2. php decompress this archive

  3. now I want to run validation for each decompressed file