From 180e80182f6877e688091580d9ce3cbf3869ebed Mon Sep 17 00:00:00 2001 From: nokonoko Date: Wed, 18 Nov 2020 14:15:44 +0100 Subject: [PATCH] change desc --- static/js/app.js | 2 +- static/php/upload.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 3cdc6d7..0e843e2 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -131,7 +131,7 @@ document.addEventListener('DOMContentLoaded', function() { link.textContent = 'File too big!'; url.appendChild(link); } else { - link.textContent = 'Server error!'; + link.textContent = 'Filetype not allowed or server error!'; url.appendChild(link); } } diff --git a/static/php/upload.php b/static/php/upload.php index 879d68d..de61b2d 100644 --- a/static/php/upload.php +++ b/static/php/upload.php @@ -56,13 +56,13 @@ function generateName($file) //Check if mime is blacklisted if (in_array($type_mime, unserialize(CONFIG_BLOCKED_MIME))) { - throw new Exception('Extension type not allowed.'); + throw new Exception('Filetype not allowed!'); exit(0); } //Check if EXT is blacklisted if (in_array($ext, unserialize(CONFIG_BLOCKED_EXTENSIONS))) { - throw new Exception('Extension type not allowed.'); + throw new Exception('Filetype not allowed!'); exit(0); }