SilverStripe\Assets\Upload::validate
Container for all validation on the file (e.g. size and extension restrictions).
Is NOT connected to the {Validator} classes, please have a look at {FileField->validate()} for an example implementation of external validation.
Signature
public function validate(array
$tmpFile )
Parameters
$tmpFile
— array
Returns
- boolean