QCloudAbortMultipfartUploadRequest Class Reference

Inherits from QCloudBizHTTPRequest
Declared in QCloudAbortMultipfartUploadRequest.h
QCloudAbortMultipfartUploadRequest.m

Overview

舍弃一个分块上传且删除已上传的分片块的方法.

功能描述

COS 支持舍弃一个分块上传且删除已上传的分片块. 注意,已上传但是未终止的分片块会占用存储空间进 而产生存储费用.因此,建议及时完成分块上传 或者舍弃分块上传.

关于舍弃一个分块上传且删除已上传的分片块接口的描述,请查看 https://cloud.tencent.com/document/product/436/7740.

示例

@code

QCloudAbortMultipfartUploadRequest *abortRequest = [QCloudAbortMultipfartUploadRequest new];
abortRequest.bucket = @"bucketName"; //存储桶名称(cos v5 的 bucket格式为:xxx-appid, 如 test-1253960454)
abortRequest.object = [[QCloudCOSXMLTestUtility sharedInstance]createCanbeDeleteTestObject];
abortRequest.uploadId = @"uploadId";
[abortRequest setFinishBlock:^(id outputObject, NSError *error) {
//additional actions after finishing
}];
[[QCloudCOSXMLService defaultCOSXML]AbortMultipfartUpload:abortRequest];

  object

对象名

@property (strong, nonatomic) NSString *object

Declared In

QCloudAbortMultipfartUploadRequest.h

  bucket

存储桶名

@property (strong, nonatomic) NSString *bucket

Declared In

QCloudAbortMultipfartUploadRequest.h

  uploadId

本次分片上传的UploadId

@property (strong, nonatomic) NSString *uploadId

Declared In

QCloudAbortMultipfartUploadRequest.h