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 |
Please login to continue.