You are here

private function Uploader::checkType in UEditor - 百度编辑器 7.2

Same name and namespace in other branches
  1. 7.3 includes/Uploader.class.inc \Uploader::checkType()

文件类型检测

Return value

bool

1 call to Uploader::checkType()
Uploader::upFile in includes/Uploader.class.inc
上传文件的主处理方法

File

includes/Uploader.class.inc, line 422

Class

Uploader
Created by JetBrains PhpStorm. User: taoqili Date: 12-7-18 Time: 上午11: 32 UEditor编辑器通用上传类

Code

private function checkType() {
  return in_array($this
    ->getFileExt(), $this->config["allowFiles"]);
}