php判断file文件是否上传

if(!empty($_FILES['file']['tmp_name'])){
  echo '已选择文件';
}else{
  echo '请选择文件';
}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: