Commit a19020da by 冷斌

fix bug

parent a228a176
...@@ -47,7 +47,7 @@ class AuthController extends HomebaseController { ...@@ -47,7 +47,7 @@ class AuthController extends HomebaseController {
$saveName=I('saveName'); $saveName=I('saveName');
$config=array( $config=array(
'replace' => true, 'replace' => true,
'rootPath' => './'.C("UPLOADPATH"), 'rootPath' => '/upload',
'savePath' => 'rz/', 'savePath' => 'rz/',
'maxSize' => 0,//500K 'maxSize' => 0,//500K
'saveName' => array('uniqid',''), 'saveName' => array('uniqid',''),
......
...@@ -125,9 +125,6 @@ class Upload { ...@@ -125,9 +125,6 @@ class Upload {
return false; return false;
} }
var_dump($files, $this->rootPath);
die;
/* 检测上传根目录 */ /* 检测上传根目录 */
if(!$this->uploader->checkRootPath($this->rootPath)){ if(!$this->uploader->checkRootPath($this->rootPath)){
$this->error = $this->uploader->getError(); $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