\Uploader

Created by JetBrains PhpStorm.

User: taoqili Date: 12-7-18 Time: 上午11: 32 UEditor编辑器通用上传类

Summary

Methods
Properties
Constants
__construct()
getFileInfo()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
upFile()
upBase64()
saveRemote()
getStateInfo()
getFileExt()
getFullName()
getFileName()
getFilePath()
checkType()
checkSize()
$fileField
$file
$base64
$config
$oriName
$fileName
$fullName
$filePath
$fileSize
$fileType
$stateInfo
$stateMap
N/A

Properties

$fileField

$fileField

$file

$file

$base64

$base64

$config

$config

$oriName

$oriName

$fileName

$fileName

$fullName

$fullName

$filePath

$filePath

$fileSize

$fileSize

$fileType

$fileType

$stateInfo

$stateInfo

$stateMap

$stateMap

Methods

__construct()

__construct(string  $fileField, array  $config, mixed  $type = "upload") : mixed

构造函数

Parameters

string $fileField

表单名称

array $config

配置项

mixed $type

Returns

mixed —

getFileInfo()

getFileInfo() : array

获取当前上传成功文件的各项信息

Returns

array —

upFile()

upFile() : mixed

上传文件的主处理方法

Returns

mixed —

upBase64()

upBase64() : mixed

处理base64编码的图片上传

Returns

mixed —

saveRemote()

saveRemote() : mixed

拉取远程图片

Returns

mixed —

getStateInfo()

getStateInfo( $errCode) : string

上传错误检查

Parameters

$errCode

Returns

string —

getFileExt()

getFileExt() : string

获取文件扩展名

Returns

string —

getFullName()

getFullName() : string

重命名文件

Returns

string —

getFileName()

getFileName() : string

获取文件名

Returns

string —

getFilePath()

getFilePath() : string

获取文件完整路径

Returns

string —

checkType()

checkType() : bool

文件类型检测

Returns

bool —

checkSize()

checkSize() : bool

文件大小检测

Returns

bool —