\extcore\uploadUploadInterface

上传驱动接口 Interface UploadInterface

Summary

Methods
Constants
__construct()
rootPath()
checkPath()
saveFile()
getError()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

__construct()

__construct(array  $config) 

构建函数

Parameters

array $config

上传配置

rootPath()

rootPath(string  $path) : boolean

检查根路径

Parameters

string $path

路径

Returns

boolean

checkPath()

checkPath(string  $path) : boolean

检查上传路径

Parameters

string $path

路径

Returns

boolean

saveFile()

saveFile(array  $file) : boolean|array

保存文件

Parameters

array $file

文件名

Returns

boolean|array

getError()

getError() : string

获取错误

Returns

string