-
mimeTypes Validator is wrong · 431915c4MarcioCamello authored
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
431915c4
×