Commit 8397b859 by 冷斌

fix bug

parent ed45cca5
......@@ -128,21 +128,15 @@ class Upload {
/* 检测上传根目录 */
if(!$this->uploader->checkRootPath($this->rootPath)){
$this->error = $this->uploader->getError();
var_dump(1, $this->error);
die;
return false;
}
/* 检查上传目录 */
if(!$this->uploader->checkSavePath($this->savePath)){
$this->error = $this->uploader->getError();
var_dump(2, $this->error);
die;
return false;
}
var_dump(3);
die;
/* 逐个检测并上传文件 */
$info = array();
if(function_exists('finfo_open')){
......@@ -150,6 +144,8 @@ class Upload {
}
// 对上传文件数组信息处理
$files = $this->dealFiles($files);
var_dump($files);
die;
foreach ($files as $key => $file) {
$file['name'] = strip_tags($file['name']);
if(!isset($file['key'])) $file['key'] = $key;
......
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