根据这个示例http://aws.amazon.com/articles/0006282245644577,很清楚如何使用 AWS iOS SDK 使用分段上传。但是,当我尝试恢复中断的上传时,我的上传似乎没有正确拼接在一起。
我使用下面的代码来恢复上传。这是设置分段上传的上传 ID 的正确方法吗?
S3InitiateMultipartUploadRequest *initiateRequest = [[S3InitiateMultipartUploadRequest alloc] initWithKey:key inBucket:bucketName];
S3InitiateMultipartUploadResponse *initiateResponse = [self.amazonS3Client initiateMultipartUpload:initiateRequest];
self.multipartUpload = [initiateResponse multipartUpload];
// Set upload id to resume upload
self.multipartUpload.uploadId = uploadId;
我将不胜感激任何帮助或指示。