PHP Class Qiniu\Storage\ResumeUploader

Datei anzeigen Open project: qiniu/php-sdk Class Usage Examples

Public Methods

Method Description
__construct ( $upToken, $key, $inputStream, $size, $params, $mime, $config ) 上传二进制流到七牛
upload ( ) 上传操作

Private Methods

Method Description
blockSize ( $uploaded )
fileUrl ( )
makeBlock ( $block, $blockSize ) 创建块
makeFile ( ) 创建文件
post ( $url, $data )

Method Details

__construct() public method

上传二进制流到七牛
public __construct ( $upToken, $key, $inputStream, $size, $params, $mime, $config )
$upToken 上传凭证
$key 上传文件名
$inputStream 上传二进制流
$size 上传流的大小
$params 自定义变量
$mime 上传数据的mimeType

upload() public method

上传操作
public upload ( )