Sirius\Upload\Handler::validateFile PHP Method

validateFile() protected method

Validates a file according to the rules configured on the handler
protected validateFile ( $file ) : mixed
$file
return mixed
    protected function validateFile($file)
    {
        if (!$this->validator->validate($file)) {
            $file['messages'] = $this->validator->getMessages();
        }
        return $file;
    }