summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 16:44:35 +0300
commit8bec661288b276c98bdb0e773e5f4d5275dc4c87 (patch)
tree8617ebe581c62fc46a7881aa61801ebce9d3c603 /vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php
parent540438c2eb5452bacad30c247906bfa287f2da1d (diff)
update AWK SDKHEADmaster
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php b/vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php
index baccf58..002bd43 100644
--- a/vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php
+++ b/vendor/aws/aws-sdk-php/src/S3/MultipartUploadingTrait.php
@@ -51,10 +51,14 @@ trait MultipartUploadingTrait
protected function handleResult(CommandInterface $command, ResultInterface $result)
{
- $this->getState()->markPartAsUploaded($command['PartNumber'], [
- 'PartNumber' => $command['PartNumber'],
- 'ETag' => $this->extractETag($result),
- ]);
+ $partData = [];
+ $partData['PartNumber'] = $command['PartNumber'];
+ $partData['ETag'] = $this->extractETag($result);
+ if (isset($command['ChecksumAlgorithm'])) {
+ $checksumMemberName = 'Checksum' . strtoupper($command['ChecksumAlgorithm']);
+ $partData[$checksumMemberName] = $result[$checksumMemberName];
+ }
+ $this->getState()->markPartAsUploaded($command['PartNumber'], $partData);
}
abstract protected function extractETag(ResultInterface $result);