if (move_uploaded_file($fileInfo['tmp_name'],$destination)) { //判断文件名是否重名 if (file_exists($fileInfo['name'])) { echo "<script language=\"JavaScript\">\r\n"; echo " alert(\"文件已存在请重命名后创建\");\r\n"; echo " history.back();\r\n"; echo "</script>"; exit; }else{ echo "<script language=\"JavaScript\">\r\n"; echo " alert(\"文件上传成功\");\r\n"; echo " history.back();\r\n"; echo "</script>"; exit;}}点击上传还是会有提示框显示:文件已存在请重命名后创建
添加回答
举报
0/150
提交
取消