\Qiniu\StorageResumeUploader

断点续上传类, 该类主要实现了断点续上传中的分块上传, 以及相应地创建块和创建文件过程.

Summary

Methods
Properties
Constants
__construct()
upload()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
makeBlock()
fileUrl()
makeFile()
post()
blockSize()
$upToken
$key
$inputStream
$size
$params
$mime
$contexts
$host
$currentUrl
$config
N/A

Properties

$upToken

$upToken

$key

$key

$inputStream

$inputStream

$size

$size

$params

$params

$mime

$mime

$contexts

$contexts

$host

$host

$currentUrl

$currentUrl

$config

$config

Methods

__construct()

__construct(string  $upToken, string  $key, string  $inputStream, string  $size, string  $params, string  $mime, string  $config) : mixed

上传二进制流到七牛

Parameters

string $upToken

上传凭证

string $key

上传文件名

string $inputStream

上传二进制流

string $size

上传流的大小

string $params

自定义变量

string $mime

上传数据的mimeType

string $config

Returns

mixed —

upload()

upload(mixed  $fname) : mixed

上传操作

Parameters

mixed $fname

Returns

mixed —

makeBlock()

makeBlock(mixed  $block, mixed  $blockSize) : mixed

创建块

Parameters

mixed $block
mixed $blockSize

Returns

mixed —

fileUrl()

fileUrl(mixed  $fname) : mixed

Parameters

mixed $fname

Returns

mixed —

makeFile()

makeFile(mixed  $fname) : mixed

创建文件

Parameters

mixed $fname

Returns

mixed —

post()

post(mixed  $url, mixed  $data) : mixed

Parameters

mixed $url
mixed $data

Returns

mixed —

blockSize()

blockSize(mixed  $uploaded) : mixed

Parameters

mixed $uploaded

Returns

mixed —