$picture = $_FILES['picture'];
$upload = new Upload();
$upload->exts = array('jpg', 'png', 'jpeg');
$upload->rootPath = './Public/stu_img/';
$upload->saveName = $data['student_name'] . '_' . time() . 'AuthenticatePicture';
$info = $upload->uploadOne($picture);
if (!$info) {
echo $upload->getError();代码如上,打印出错信息,为“请手动创建路劲:./Public/stu_img/”求交流……
服务器为linux
最佳答案