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);