FIX: Upload valid file check
This commit is contained in:
@ -42,7 +42,7 @@ class FileHandler {
|
|||||||
if ($file->getError() !== UPLOAD_ERR_OK) {
|
if ($file->getError() !== UPLOAD_ERR_OK) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!in_array($file->getClientMediaType(), array_keys($this->valid_types))) {
|
if (!in_array($file->getClientMediaType(), $this->valid_types)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if ($new_name === null) {
|
if ($new_name === null) {
|
||||||
|
Reference in New Issue
Block a user