fixed FileValidator after UploadedFile refactoring

fixes #845