Update file upload.php
This commit is contained in:
parent
cec39b22d3
commit
b4a32526c1
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user