This commit is contained in:
Dennis Eichhorn 2023-09-24 20:30:24 +00:00
commit 9c22a8b84b
2 changed files with 2 additions and 2 deletions

View File

@ -165,7 +165,7 @@ class UploadFile
return $result; return $result;
} }
if (!empty($this->allowedTypes) && !in_array($f['type'], $this->allowedTypes, true)) { if (!empty($this->allowedTypes) && !\in_array($f['type'], $this->allowedTypes, true)) {
$result[$key]['status'] = UploadStatus::WRONG_EXTENSION; $result[$key]['status'] = UploadStatus::WRONG_EXTENSION;
return $result; return $result;