* these code should moved to the zentaoext repo.

This commit is contained in:
wangchunsheng
2011-04-04 07:40:26 +00:00
parent 2ec5bbbcc5
commit d66c1bc05e
-4
View File
@@ -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)