\Phpcmf\LibraryUpload

附件类

Summary

Methods
Properties
Constants
__construct()
upload_file()
update_file()
down_file()
base64_image()
save_file()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_safe_check()
_error_msg()
_file_name()
_file_ext()
$error
$notallowed
N/A

Properties

$error

$error : 

Type

$notallowed

$notallowed : 

Type

Methods

__construct()

__construct(  $params) 

构造函数

Parameters

$params

upload_file()

upload_file(  $config) 

上传文件

Parameters

$config

update_file()

update_file(  $config) 

更新文件

Parameters

$config

down_file()

down_file(  $config) 

下载文件

Parameters

$config

base64_image()

base64_image(  $config) 

Parameters

$config

save_file()

save_file(  $type,   $data,   $file_path,   $attachment,   $watermark) 

存储文件

Parameters

$type
$data
$file_path
$attachment
$watermark

_safe_check()

_safe_check(  $file_ext,   $data) 

Parameters

$file_ext
$data

_error_msg()

_error_msg(  $code) 

上传错误

Parameters

$code

_file_name()

_file_name(  $name) 

获取文件名

Parameters

$name

_file_ext()

_file_ext(  $name) 

获取文件扩展名

Parameters

$name