Im looking at trying to add validation to a DataObject using the ImageDataObjectManager. Basically I want to verify if an Image width and size is correct before allowing a file to be uploaded. However I am stumped as in where I need to add this, I thought using the getCMSValidator method in the DataObject would work but doesn't seem to even be recognised using the ImageDataObjectManager at all.
I noticed that there is a setDetailFormValidator which is from ComplexTableField but doesn't seem to actually work with what I want to do (again didnt seem to be recognised).
Is there a way to actually do this ?