pull/95/head
HFO4 7 years ago
parent 946408b642
commit 72ab679dd5

@ -107,7 +107,9 @@ class UploadHandler extends Model{
"objname" => $generatePath."/".$fileName,
"fsize" => $this->fileSizeTmp,
);
$addAction = FileManage::addFile($jsonData,$this->policyContent,$this->userId);
@list($width, $height, $type, $attr) = getimagesize($savePath.DS.$fileName);
$picInfo = empty($width)?" ":$width.",".$height;
$addAction = FileManage::addFile($jsonData,$this->policyContent,$this->userId,$picInfo);
if(!$addAction[0]){
$this->setError($addAction[1],true,$fileName,$savePath);
}

Loading…
Cancel
Save