You are here

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

获取文件扩展名

Return value

string

5 calls to Upload::getFileExt()
Upload::checkType in src/Uploader/Upload.php
文件类型检测
Upload::getFullName in src/Uploader/Upload.php
重命名文件
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 131

Class

Upload
UEditor编辑器通用上传类

Namespace

Drupal\ueditor\Uploader

Code

protected function getFileExt() {
  return strtolower(strrchr($this->oriName, '.'));
}