请问为什么指定地点中会有扩展名?
move_uploaded_file($fileInfo['tmp_name'],$destination):
这样的意思是把文件$fileInfo['tmp_name']移动到文件$destination
中吗?这里的$destination不应该是目录才对吗?为什么会有文件
扩展名?
$uniName=md5(uniqid(microtime(true),true)).'.'.$ext;
//echo $uniName;exit;
$destination=$path.'/'.$uniName;
if(@move_uploaded_file($fileInfo['tmp_name'],$destination)){
echo '文件上传成功';
}else{
echo '文件上传失败';
}