文件上传类配置
$config = array(
'maxSize' => 3145728,
'rootPath' => './Public/',
'savePath' => 'Uploads/Ad/',
'saveName' => array('uniqid',''),
'exts' => array('jpg', 'gif', 'png', 'jpeg'),
'autoSub' => true,
'subName' => array('date','Ymd'),
);
$upload = new Upload($config);// 实例化上传类
$info = $upload->upload();