PHP - move_uploaded_file example

File will be stored in temporary location. Use tmp_name to get uploaded file temporary path.
    
        $uploaded = 'upload/directory/' . basename($_FILES['imgUpload']['name']);
        if (move_uploaded_file($_FILES['imgUpload']['tmp_name'], $uploaded)) {
            echo "Success";
        } else {
            echo "Fail";
        }