Mime Type Validation

I’m just wondering how Yii validates upload file mime types.

Does it take values from the content type provided, look at the file extension, or does it use finfo?