mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Support of s3 storage class in External Storage application
Signed-off-by: François Ménabé <francois.menabe@gmail.com>
This commit is contained in:
parent
cf9bdc0274
commit
710f3fd405
2 changed files with 4 additions and 1 deletions
|
|
@ -47,6 +47,8 @@ class AmazonS3 extends Backend {
|
|||
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
|
||||
(new DefinitionParameter('region', $l->t('Region')))
|
||||
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
|
||||
(new DefinitionParameter('storageClass', $l->t('Storage Class')))
|
||||
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
|
||||
(new DefinitionParameter('use_ssl', $l->t('Enable SSL')))
|
||||
->setType(DefinitionParameter::VALUE_BOOLEAN),
|
||||
(new DefinitionParameter('use_path_style', $l->t('Enable Path Style')))
|
||||
|
|
|
|||
|
|
@ -583,7 +583,8 @@ class AmazonS3 extends \OC\Files\Storage\Common {
|
|||
$this->getConnection()->copyObject([
|
||||
'Bucket' => $this->bucket,
|
||||
'Key' => $this->cleanKey($target),
|
||||
'CopySource' => S3Client::encodeKey($this->bucket . '/' . $source)
|
||||
'CopySource' => S3Client::encodeKey($this->bucket . '/' . $source),
|
||||
'StorageClass' => $this->storageClass,
|
||||
]);
|
||||
$this->testTimeout();
|
||||
} catch (S3Exception $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue