Sirius\Upload\Handler::validateFile PHP 메소드

validateFile() 보호된 메소드

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