Update file upload.php

This commit is contained in:
Jan BELLON 2024-03-07 01:58:07 +00:00
parent cec39b22d3
commit b4a32526c1

View File

@ -22,6 +22,8 @@ if(isset($_POST['title']) && isset($_FILES['file'])) {
} }
if($upload->execute()) { if($upload->execute()) {
$status = "Uploaded"; $status = "Uploaded";
} else {
$status = "Error";
} }
move_uploaded_file($_FILES['file']['tmp_name'], $destination); move_uploaded_file($_FILES['file']['tmp_name'], $destination);