validators\FileValidator validateMimeType()

validateMimeType() protected method (available since version 2.0.8)

Checks the mimeType of the $file against the list in the $mimeTypes property

See also $mimeTypes.

protected boolean validateMimeType ( $file )
$file yii\web\UploadedFile
return boolean

Whether the $file mimeType is allowed

throws yii\base\InvalidConfigException
doc_Yii
2016-10-30 17:13:43
Comments
Leave a Comment

Please login to continue.