In my Doctrine entity, which is data_class for my form I have a file property defined like this:
data_class
/** * Image. * * @Assert\\NotBla
You can also use Validation Groups for that. One Validation Group (perhaps default one) will be for create and second for update.