Frontend\Core\Engine\FrontendFormImage::getErrors PHP Method

getErrors() public method

This function will return the errors. It is extended so we can do image checks automatically.
public getErrors ( ) : string
return string
    public function getErrors()
    {
        // do an image validation
        if ($this->isFilled()) {
            $this->isAllowedExtension(array('jpg', 'jpeg', 'gif', 'png'), FL::err('JPGGIFAndPNGOnly'));
            $this->isAllowedMimeType(array('image/jpeg', 'image/gif', 'image/png'), FL::err('JPGGIFAndPNGOnly'));
        }
        return $this->errors;
    }