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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
BooleanValidator.php | Loading commit data... | |
CompareValidator.php | Loading commit data... | |
DateValidator.php | Loading commit data... | |
DefaultValueValidator.php | Loading commit data... | |
EmailValidator.php | Loading commit data... | |
ExistValidator.php | Loading commit data... | |
FileValidator.php | Loading commit data... | |
FilterValidator.php | Loading commit data... | |
ImageValidator.php | Loading commit data... | |
InlineValidator.php | Loading commit data... | |
NumberValidator.php | Loading commit data... | |
PunycodeAsset.php | Loading commit data... | |
RangeValidator.php | Loading commit data... | |
RegularExpressionValidator.php | Loading commit data... | |
RequiredValidator.php | Loading commit data... | |
SafeValidator.php | Loading commit data... | |
StringValidator.php | Loading commit data... | |
UniqueValidator.php | Loading commit data... | |
UrlValidator.php | Loading commit data... | |
ValidationAsset.php | Loading commit data... | |
Validator.php | Loading commit data... |