php move_uploaded_file返回true但localhost上缺少文件

I am trying to move one image to new folder move_uploaded_file is returning 1 but the file is missing, I am working on localhost with XAMPP

$name = basename($_FILES['arr']['name'][0]);
move_uploaded_file($_FILES['arr']['tmp_name'][0],"\Images");

You should specify the destination file name

if ( move_uploaded_file($_FILES['arr']['tmp_name'],dirname(__FILE__) . '/images/' . $_FILES['arr']['name'] ) ) {
    echo "file uploaded";
} else {
   echo "error in uploading";
}
$name = basename($_FILES['arr']['name'][0]);
move_uploaded_file($_FILES['arr']['tmp_name'][0],'/images/' . $filename);

You have to add a destination for the file to go, including the filename that you wish to assign to it.

Refer to: http://php.net/manual/en/function.move-uploaded-file.php