$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());
}
}
最佳答案
		