Nightcrawler

It's calling its parent in the public function validate(){} method and in my getCMSfields I call my custom validator....

firesphere

I vaguely recall Validator needing a php() method? But I'm not sure

firesphere

Nah, okay, explains some stuff for me, I was confused about it 🙂

Nightcrawler

I want to limit the max height/width of images that get uploaded

Nightcrawler

ImageUploadValidator() is just the name of my class...no good 😉? I found a SS3 validator class and they were extending the Upload_Validator ....but maybe all different in SS4? Isn't the Validator class part of the forms...not for hooking into the file uploads?

firesphere

And, ehm, ImageUploadValidator()? Where is that from?

firesphere

The call to create a validator should be done in the validate() method

 

[2019-03-22 08:17:17] manifestcache-log.WARNING: Failed to save values {"keys":["__CACHE__"],"exception":null} []