Hi. I'd like to extend the Validator class to create a custom validation object; it'll be used with a file upload app. Before calling the upload() method on the FileReference object, I need to ensure it doesn't exceed 1MB. I've got code that checks that, but wondered how to do the custom validator.
Should I pass the file object to the custom validator class' doValidation() method and check its file size property there? What's your recommendation? Thanks. - Alex