Created
April 6, 2019 07:24
-
-
Save setu1421/fc1a5a0223f7b1ef7bf8b3f9a74c7a6d to your computer and use it in GitHub Desktop.
Upload each chunk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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