QCloudListMultipartRequest Class Reference

Inherits from QCloudBizHTTPRequest
Declared in QCloudListMultipartRequest.h
QCloudListMultipartRequest.m

Overview

查询特定分块上传中的已上传的块的方法.

功能描述

COS 支持查询特定分块上传中的已上传的块, 即可以 罗列出指定 UploadId 所属的所有已上传成功的分块. 因此,基于此可以完成续传功能.

关于查询特定分块上传中的已上传块接口的描述,请查看 https://cloud.tencent.com/document/product/436/7747.

示例

@code

QCloudListBucketMultipartUploadsRequest* uploads = [QCloudListBucketMultipartUploadsRequest new];

// 存储桶名称,格式为 BucketName-APPID
uploads.bucket = @"examplebucket-1250000000";

// 设置最大返回的 multipart 数量,合法取值从 1 到 1000
uploads.maxUploads = 100;

[uploads setFinishBlock:^(QCloudListMultipartUploadsResult* result,
                          NSError *error) {
    // 可以从 result 中返回分块信息
    // 进行中的分块上传对象
    NSArrayQCloudListMultipartUploadContent*> *uploads = result.uploads;
}];

[[QCloudCOSXMLService defaultCOSXML] ListBucketMultipartUploads:uploads];

  object

对象的名称

@property (strong, nonatomic) NSString *object

Declared In

QCloudListMultipartRequest.h

  bucket

存储桶名

@property (strong, nonatomic) NSString *bucket

Declared In

QCloudListMultipartRequest.h

  uploadId

标识本次分块上传的uploadId

@property (strong, nonatomic) NSString *uploadId

Declared In

QCloudListMultipartRequest.h

  maxPartsCount

单次返回最大的条目数量,默认 1000

@property (strong, nonatomic) NSString *maxPartsCount

Declared In

QCloudListMultipartRequest.h

  partNumberMarker

默认以 UTF-8 二进制顺序列出条目,所有列出条目从 marker 开始

@property (strong, nonatomic) NSString *partNumberMarker

Declared In

QCloudListMultipartRequest.h

  encodingType

规定返回值的编码方式

@property (strong, nonatomic) NSString *encodingType

Declared In

QCloudListMultipartRequest.h