|
|
|
|
@ -113,7 +113,7 @@ class AmazonS3 extends Common {
|
|
|
|
|
$this->objectCache[$key] = $this->getConnection()->headObject([
|
|
|
|
|
'Bucket' => $this->bucket,
|
|
|
|
|
'Key' => $key
|
|
|
|
|
])->toArray();
|
|
|
|
|
] + $this->getSSECParameters())->toArray();
|
|
|
|
|
} catch (S3Exception $e) {
|
|
|
|
|
if ($e->getStatusCode() >= 500) {
|
|
|
|
|
throw $e;
|
|
|
|
|
@ -207,7 +207,7 @@ class AmazonS3 extends Common {
|
|
|
|
|
'Key' => $path . '/',
|
|
|
|
|
'Body' => '',
|
|
|
|
|
'ContentType' => FileInfo::MIMETYPE_FOLDER
|
|
|
|
|
]);
|
|
|
|
|
] + $this->getSSECParameters());
|
|
|
|
|
$this->testTimeout();
|
|
|
|
|
} catch (S3Exception $e) {
|
|
|
|
|
$this->logger->error($e->getMessage(), [
|
|
|
|
|
@ -507,7 +507,7 @@ class AmazonS3 extends Common {
|
|
|
|
|
'Body' => '',
|
|
|
|
|
'ContentType' => $mimeType,
|
|
|
|
|
'MetadataDirective' => 'REPLACE',
|
|
|
|
|
]);
|
|
|
|
|
] + $this->getSSECParameters());
|
|
|
|
|
$this->testTimeout();
|
|
|
|
|
} catch (S3Exception $e) {
|
|
|
|
|
$this->logger->error($e->getMessage(), [
|
|
|
|
|
|