From 4b059ffaf0c47a92efea734e0a5a69f3e6dae8ce Mon Sep 17 00:00:00 2001 From: Fascinated Date: Sun, 9 Apr 2023 16:54:20 +0100 Subject: [PATCH] update comment --- upload.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload.php b/upload.php index 3fa1846..76757e2 100644 --- a/upload.php +++ b/upload.php @@ -10,7 +10,7 @@ $tokens = array("set me"); // Your secret keys $uploadDir = "./"; // The upload directory $useRandomFileNames = false; // Use random file names instead of the original file name $fileNameLength = 8; // The length of the random file name -$webpThreadhold = 1048576; // The minimum file size for converting to webp (in bytes) +$webpThreadhold = 1048576; // 1MB - The minimum file size for converting to webp (in bytes) /** * Check if the token is valid @@ -98,6 +98,7 @@ try { die(); } returnJson('OK', $finalName, $timeTaken); + die(); } catch (Exception $e) { // Handle any errors $timeTaken = microtime(true) - $before; returnJson('ERROR', $e->getMessage(), $timeTaken);