
if (!empty($_FILES)) {
if ($_FILES['user_pic']['error']<4) {
$cfg=array('rootPath' =>'Public/uploads/' , );//最高级的public
$up= new\Think\Upload($cfg);
$up-> uploadOne($_FILES['user_pic']);
dump($up);
} else {
# code...
}


