我想修改附加的代码。添加文件后,上传后名称会改变
<?php
$name = $_FILES['file']['name'];
$tmp_name = $_FILES['file']['tmp_name'];
$location = "uploads/";
$new_name = $location.$name;
if (move_uploaded_file($tmp_name, $new_name)){
echo "$new_name";
}
?>
例如之前文件名是132,上传文件后就变成111