Update upload.php

This commit is contained in:
nokonoko 2021-06-28 18:09:34 +02:00
parent 9413fed93b
commit 871ed5f37a
1 changed files with 0 additions and 2 deletions

View File

@ -64,13 +64,11 @@ function generateName($file)
//Check if MIME is blacklisted
if (in_array($type_mime, unserialize(CONFIG_BLOCKED_MIME))) {
http_response_code(415);
throw new UploadException(UPLOAD_ERR_EXTENSION);
exit(0);
}
//Check if EXT is blacklisted
if (in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS))) {
http_response_code(415);
throw new UploadException(UPLOAD_ERR_EXTENSION);
exit(0);
}