多文件上传 , 提示错误是 没有上传文件

浏览:517 发布日期:2014/09/30 分类:求助交流
public function upload(){
$upload = new Upload ();
$upload->maxSize = 0; // 设置附件上传大小
$upload->rootPath = APP_PATH."./Public/";
$upload->exts = array (
'jpg',
'gif',
'png',
'jpeg',
'txt' ,
'JPG',
); // 设置附件上传类型
$upload->savePath = './Uploads/';

$info = $upload->upload ();
if(!$info){
$this->show($upload->getError());
}
}
最佳答案
评论( 相关
后面还有条评论,点击查看>>