diff --git a/html/upload.php b/html/upload.php index 78f861ec..df4903c3 100644 --- a/html/upload.php +++ b/html/upload.php @@ -20,7 +20,9 @@ if(isset($_POST['title']) && isset($_FILES['file'])) { } else { $bdd->bindParam(':date', date()); } - $upload->execute(); + if($upload->execute()) { + $status = "Uploaded"; + } move_uploaded_file($_FILES['file']['tmp_name'], $destination); } @@ -70,6 +72,7 @@ if(isset($_POST['title']) && isset($_FILES['file'])) {
+