yiisoft/yii2 — pull request #3785 by marciocamello (2014-06-10 19:35:27+00:00)
Title: mimeTypes Validator is wrong

I'm find error

```php

Wrong
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file->tempName), $this->mimeTypes, true)) {

Correct
} elseif (!empty($this->mimeTypes) && !in_array(FileHelper::getMimeType($file), $this->mimeTypes, true)) {
```

Not need call '$file->tempName' because getMimeType get object $_FILE => $file, so use $file and validator works fine