You are here

protected function Upload::checkSize in UEditor - 百度编辑器 8

文件大小检测

Return value

bool

3 calls to Upload::checkSize()
UploadCatch::doUpload in src/Uploader/UploadCatch.php
UploadFile::doUpload in src/Uploader/UploadFile.php
UploadScrawl::doUpload in src/Uploader/UploadScrawl.php

File

src/Uploader/Upload.php, line 213

Class

Upload
UEditor编辑器通用上传类

Namespace

Drupal\ueditor\Uploader

Code

protected function checkSize($type) {
  return $this->fileSize <= $this->global_settings['ueditor_' . $type . '_maxsize'] * 1000;
}