$this->saveRule = date("YmdHis", time()) . rand(0, 1000); //Image naming convention
$this->savePathNew = C('ADMIN_UPLOAD_DIR') . 'Demo/';
$this->thumbMaxWidth = C('WALLPAPER_UPLOAD_W');//已经设置4个宽度
$this->thumbMaxHeight = C('WALLPAPER_UPLOAD_H');//已经设置4个高度
$this->thumbPrefix = 'o_,t_,r_,f_'; //生产4张缩略图
$info = $this->CUpload(); // getUploadFileInfo()
$imgfile = $info[0]['savepath'] . $info[0]['savename'];
$imgName = $info[0]['savename'];
}
// 为什么$info里边只有一张图片的信息呢? 求大神指点。
最佳答案