Skip to content

Instantly share code, notes, and snippets.

@setu1421
Created April 6, 2019 07:24
Show Gist options
  • Save setu1421/fc1a5a0223f7b1ef7bf8b3f9a74c7a6d to your computer and use it in GitHub Desktop.
Save setu1421/fc1a5a0223f7b1ef7bf8b3f9a74c7a6d to your computer and use it in GitHub Desktop.
Upload each chunk
//Step 2: upload each chunk (this will run for every chunk unlike the other steps which are run once)
var uploadRequest = new UploadPartRequest
{
BucketName = bucketName,
Key = fileName,
UploadId = uploadId,
PartNumber = partNumber,
InputStream = ms,
IsLastPart = lastPart,
PartSize = ms.Length
};
var uploadResponse = _s3Client.UploadPart(uploadRequest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment