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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.