Mini Kabibi Habibi

Current Path : C:/Users/ITO/Desktop/From USB/fts/SDO/
Upload File :
Current File : C:/Users/ITO/Desktop/From USB/fts/SDO/update_file.php

<?php
    require_once '../database.php';
    
    if(ISSET($_POST['UPLOAD'])){
        $tracking_no = $_POST['tracking_no'];
        $feedback = $_POST['feedback'];
        $next_location = $_POST['next_location'];
     
        $file_name = $_FILES['title']['name'];
        $file_type = $_FILES['title']['type'];
        $file_temp = $_FILES['title']['tmp_name'];
        $location = "../files/".$tracking_no."/".$file_name;
        

        if(!file_exists("../files/".$tracking_no)){
            mkdir("../files/".$tracking_no);
        }
     

        if(move_uploaded_file($file_temp, $location)){
            mysqli_query($conn, "UPDATE `documents_recieved`  set remarks='$_POST[feedback]', next_location = '$_POST[next_location]', title = '$_POST[file_name]' where tracking_no = '$_POST[tracking_no]' ") or die(mysqli_error());
            header('location: document_tracking.php');
        }
    }
?>