Commit f77a85a2 by 冷斌

fix bug

parent a7642dd1
......@@ -157,8 +157,6 @@ class Upload {
/* 文件上传检测 */
if (!$this->check($file)){
var_dump(1);
die;
continue;
}
......@@ -179,9 +177,6 @@ class Upload {
}
}
var_dump(2);
die;
/* 生成保存文件名 */
$savename = $this->getSaveName($file);
if(false == $savename){
......@@ -197,7 +192,7 @@ class Upload {
} else {
$file['savepath'] = $this->savePath . $subpath;
}
echo 1;die;
/* 对图像文件进行严格检测 */
$ext = strtolower($file['ext']);
if(in_array($ext, array('gif','jpg','jpeg','bmp','png','swf'))) {
......
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