Upload
in package
Table of Contents
Properties
- $allow_upload : mixed
- $db : mixed
- 写入数据库
- $domain : mixed
- $user_id : mixed
Methods
- __construct() : mixed
- all() : mixed
- 批量上传
- getSize() : mixed
- 返回已上传文件总大小,单位M
- one() : mixed
- 单个文件上传 do_action("upload.mime", $mime);
- return_params() : mixed
- 返回参数
Properties
$allow_upload
public
static mixed
$allow_upload
= false
$db
写入数据库
public
static mixed
$db
= true
$domain
public
mixed
$domain
$user_id
public
mixed
$user_id
Methods
__construct()
public
__construct() : mixed
all()
批量上传
public
all() : mixed
getSize()
返回已上传文件总大小,单位M
public
static getSize() : mixed
one()
单个文件上传 do_action("upload.mime", $mime);
public
one([mixed $http_opt = [] ]) : mixed
Parameters
- $http_opt : mixed = []
return_params()
返回参数
public
return_params(mixed &$model) : mixed
Parameters
- $model : mixed