\extcore\uploadLocalDriver

本地上传驱动 Class LocalDriver

Summary

Methods
Properties
Constants
__construct()
rootPath()
checkPath()
saveFile()
mkdir()
getError()
No public properties found
No constants found
No protected methods found
$config
$errorMsg
N/A
No private methods found
No private properties found
N/A

Properties

$config

$config : 

Type

$errorMsg

$errorMsg : 

Type

Methods

__construct()

__construct(array  $config = array()) 

构建函数

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

mkdir()

mkdir(  $path) 

Parameters

$path

getError()

getError() : string

获取错误

Returns

string