I want to add validation or change the file name if there is a file name that already exists in the folder
$image = $_FILES['image']['name'];
$tmp = $_FILES['image']['tmp_name'];
$target_dir = "../file/upload/201902/28/";
move_uploaded_file($tmp, $target_dir.$image);