Commit a19020da by 冷斌

fix bug

parent a228a176
......@@ -47,7 +47,7 @@ class AuthController extends HomebaseController {
$saveName=I('saveName');
$config=array(
'replace' => true,
'rootPath' => './'.C("UPLOADPATH"),
'rootPath' => '/upload',
'savePath' => 'rz/',
'maxSize' => 0,//500K
'saveName' => array('uniqid',''),
......
......@@ -125,9 +125,6 @@ class Upload {
return false;
}
var_dump($files, $this->rootPath);
die;
/* 检测上传根目录 */
if(!$this->uploader->checkRootPath($this->rootPath)){
$this->error = $this->uploader->getError();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment