From b4a32526c11d6b914f4211b548fc04870156685e Mon Sep 17 00:00:00 2001 From: Jan BELLON Date: Thu, 7 Mar 2024 01:58:07 +0000 Subject: [PATCH] Update file upload.php --- html/upload.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/upload.php b/html/upload.php index df4903c3..a0e16134 100644 --- a/html/upload.php +++ b/html/upload.php @@ -22,6 +22,8 @@ if(isset($_POST['title']) && isset($_FILES['file'])) { } if($upload->execute()) { $status = "Uploaded"; + } else { + $status = "Error"; } move_uploaded_file($_FILES['file']['tmp_name'], $destination);