Method | Description | |
---|---|---|
__construct ( $config = null ) | 构造函数,用于设置上传根路径 | |
checkRootPath ( string $rootpath ) : boolean | 检测上传根目录 | |
checkSavePath ( string $savepath ) : boolean | 检测上传目录 | |
getError ( ) : string | 获取最后一次上传错误信息 | |
mkdir ( string $savepath ) : boolean | 创建目录 | |
save ( array $file, boolean $replace = true ) : boolean | 保存指定文件 |
public checkRootPath ( string $rootpath ) : boolean | ||
$rootpath | string | 根目录 |
return | boolean | true-检测通过,false-检测失败 |
public checkSavePath ( string $savepath ) : boolean | ||
$savepath | string | 上传目录 |
return | boolean | 检测结果,true-通过,false-失败 |