s3-upload-stream icon indicating copy to clipboard operation
s3-upload-stream copied to clipboard

Missing SSE in uploadPart

Open cdmackie opened this issue 10 years ago • 0 comments

Error in passing SSECustomerKey because they aren't passed into uploadPart.

diff --git a/lib/s3-upload-stream.js b/lib/s3-upload-stream.js
index 3e83ab3..a67590f 100644
--- a/lib/s3-upload-stream.js
+++ b/lib/s3-upload-stream.js
@@ -238,6 +238,9 @@ Client.prototype.upload = function (destinationDetails, sessionDetails) {
         Body: partBuffer,
         Bucket: destinationDetails.Bucket,
         Key: destinationDetails.Key,
+        SSECustomerAlgorithm: destinationDetails.SSECustomerAlgorithm,
+        SSECustomerKey: destinationDetails.SSECustomerKey,
+        SSECustomerKeyMD5: destinationDetails.SSECustomerKeyMD5,
         UploadId: multipartUploadID,
         PartNumber: localPartNumber
       },

cdmackie avatar Feb 18 '15 06:02 cdmackie