This is the code I have written to upload the file but the $flag is showing false.
if(isset($_POST['save'])){
$gallery_title = mysqli_escape_string($conn,$_POST['gallery_title']);
if(isset($_FILES['image'])){
$images = $_FILES['image'];
$image_name = mysqli_escape_string($conn,md5(time()).$images['name']);
$image_destination = "../images/gallery/" . $image_name;
$flag = move_uploaded_file($images['tmp_name'], $image_destination);
var_dump($flag);
}
}