]> jfr.im git - uguu.git/blobdiff - static/php/upload.php
durr
[uguu.git] / static / php / upload.php
index de61b2dc51494cd1bd3f3ce968fb26e6a405e6ca..87190763be82e46bf89f41cc7cff3b7e0c1d2d9e 100644 (file)
@@ -56,12 +56,14 @@ function generateName($file)
 
         //Check if mime is blacklisted
         if (in_array($type_mime, unserialize(CONFIG_BLOCKED_MIME))) {
+            http_response_code(415);
             throw new Exception('Filetype not allowed!');
             exit(0);
         }
 
         //Check if EXT is blacklisted
         if (in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS))) {
+            http_response_code(415);
             throw new Exception('Filetype not allowed!');
             exit(0);
         }