Commit e0cbd567 by 冷斌

fix bug

parent f77a85a2
...@@ -192,7 +192,6 @@ class Upload { ...@@ -192,7 +192,6 @@ class Upload {
} else { } else {
$file['savepath'] = $this->savePath . $subpath; $file['savepath'] = $this->savePath . $subpath;
} }
echo 1;die;
/* 对图像文件进行严格检测 */ /* 对图像文件进行严格检测 */
$ext = strtolower($file['ext']); $ext = strtolower($file['ext']);
if(in_array($ext, array('gif','jpg','jpeg','bmp','png','swf'))) { if(in_array($ext, array('gif','jpg','jpeg','bmp','png','swf'))) {
...@@ -210,6 +209,9 @@ class Upload { ...@@ -210,6 +209,9 @@ class Upload {
} else { } else {
$this->error = $this->uploader->getError(); $this->error = $this->uploader->getError();
} }
echo 1;
var_dump( $this->error );
die;
} }
if(isset($finfo)){ if(isset($finfo)){
finfo_close($finfo); finfo_close($finfo);
......
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