upfile类型控件 $_FILES 接收不到

#1 zhijiangch




function create(){ 
  //dump($_FILES['Upfile']);
  print_r($_FILES['Upfile']);
  exit;
}
输出结果:空已测试多次,接收不到值,帮忙看看是哪里问题

2016-04-19 12:07:06

#2 jake

http://cn.php.net/manual/zh/features.file-upload.post-method.php 自己看看

2016-04-19 13:14:18

#3 zhijiangch

低级错误,缺少属性enctype="multipart/form-data"
jake老师费心了,再次感谢!

2016-04-19 17:08:37