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
Showing
Please
register
or
sign in
to comment