From 78b3941c80095983412ef8bf11581e10f0c23e04 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Sun, 9 Apr 2023 12:22:39 +0100 Subject: [PATCH] change message --- upload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload.php b/upload.php index 23b93ae..c69f513 100644 --- a/upload.php +++ b/upload.php @@ -93,12 +93,12 @@ try { returnJson('OK', $finalName, $timeTaken); } else { $timeTaken = microtime(true) - $before; - returnJson('ERROR', 'File upload failed. Does the folder exist and did you CHMOD the folder?', $timeTaken); + returnJson('ERROR', 'File upload failed. Does the upload folder exist and did you CHMOD the folder?', $timeTaken); } die(); } returnJson('OK', $finalName, $timeTaken); -} catch (Exception $e) { +} catch (Exception $e) { // Handle any errors $timeTaken = microtime(true) - $before; returnJson('ERROR', $e->getMessage(), $timeTaken); die();