diff --git a/module/file/control.php b/module/file/control.php index 1143313827..4878d0d050 100644 --- a/module/file/control.php +++ b/module/file/control.php @@ -21,8 +21,6 @@ class file extends control */ public function buildForm($fileCount = 2, $percent = 0.9) { - $sumSize = $this->config->pms->dbSize + $this->config->pms->fileSize; - if($sumSize > $this->config->file->maxSize)die('超过最大容量,无法上传,付费可继续上传!'); if(!file_exists($this->file->savePath)) { printf($this->lang->file->errorNotExists, $this->file->savePath); @@ -46,8 +44,6 @@ class file extends control */ public function ajaxUpload() { - $sumSize = $this->config->pms->dbSize + $this->config->pms->fileSize; - if($sumSize > $this->config->file->maxSize)die('超过最大容量,无法上传,付费可继续上传!'); $file = $this->file->getUpload('imgFile'); $file = $file[0]; if($file)