Adapt multipart upload to use sse-kms parameters
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
c62afe0128
commit
b45ba6a94b
|
@ -49,7 +49,7 @@ class S3 implements IObjectStore, IObjectStoreMultiPartUpload {
|
||||||
$upload = $this->getConnection()->createMultipartUpload([
|
$upload = $this->getConnection()->createMultipartUpload([
|
||||||
'Bucket' => $this->bucket,
|
'Bucket' => $this->bucket,
|
||||||
'Key' => $urn,
|
'Key' => $urn,
|
||||||
]);
|
] + $this->getSseKmsPutParameters());
|
||||||
$uploadId = $upload->get('UploadId');
|
$uploadId = $upload->get('UploadId');
|
||||||
if ($uploadId === null) {
|
if ($uploadId === null) {
|
||||||
throw new Exception('No upload id returned');
|
throw new Exception('No upload id returned');
|
||||||
|
@ -74,7 +74,7 @@ class S3 implements IObjectStore, IObjectStoreMultiPartUpload {
|
||||||
'Key' => $urn,
|
'Key' => $urn,
|
||||||
'UploadId' => $uploadId,
|
'UploadId' => $uploadId,
|
||||||
'MultipartUpload' => ['Parts' => $result],
|
'MultipartUpload' => ['Parts' => $result],
|
||||||
]);
|
] + $this->getSseKmsPutParameters());
|
||||||
$stat = $this->getConnection()->headObject([
|
$stat = $this->getConnection()->headObject([
|
||||||
'Bucket' => $this->bucket,
|
'Bucket' => $this->bucket,
|
||||||
'Key' => $urn,
|
'Key' => $urn,
|
||||||
|
|
Loading…
Reference in New Issue