validators\ImageValidator validateImage()

validateImage() protected method

Validates an image file.

protected array|null validateImage ( $image )
$image yii\web\UploadedFile

Uploaded file passed to check against a set of rules

return array|null

The error message and the parameters to be inserted into the error message. Null should be returned if the data is valid.

doc_Yii
2016-10-30 17:13:48
Comments
Leave a Comment

Please login to continue.