S3 Multipart Upload: how can I cancel one?

前端 未结 3 855
无人及你
无人及你 2021-01-05 14:28

I need to cancel an in-progress download that was initiated with

fileTransferUtility = new TransferUtility(/*...*/);
var uploadRequest = new TransferUtility         


        
3条回答
  •  臣服心动
    2021-01-05 14:58

    Try something like :

    s3Client.AbortMultipartUpload(new AbortMultipartUploadRequest()
      .WithBucketName(bucketName)
      .WithKey(key)
      .WithUploadId(Response.UploadId));
    }
    

    see http://docs.aws.amazon.com/sdkfornet/latest/apidocs/html/M_Amazon_S3_AmazonS3_AbortMultipartUpload.htm

提交回复
热议问题