Skip to content

Commit 6f8d5e6

Browse files
CarlSchwanAndyScherzinger
authored andcommitted
feat(external-s3): Expose config option to enable direct s3 preview
Signed-off-by: Carl Schwan <carlschwan@kde.org> [skip ci]
1 parent 5fe2688 commit 6f8d5e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/files_external/lib/Lib/Backend/AmazonS3.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public function __construct(IL10N $l, AccessKey $legacyAuth) {
2727
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
2828
(new DefinitionParameter('port', $l->t('Port')))
2929
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
30+
(new DefinitionParameter('proxy', $l->t('Proxy')))
31+
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
3032
(new DefinitionParameter('region', $l->t('Region')))
3133
->setFlag(DefinitionParameter::FLAG_OPTIONAL),
3234
(new DefinitionParameter('storageClass', $l->t('Storage Class')))
@@ -41,6 +43,9 @@ public function __construct(IL10N $l, AccessKey $legacyAuth) {
4143
(new DefinitionParameter('useMultipartCopy', $l->t('Enable multipart copy')))
4244
->setType(DefinitionParameter::VALUE_BOOLEAN)
4345
->setDefaultValue(true),
46+
(new DefinitionParameter('use_presigned_url', $l->t('Use presigned S3 url')))
47+
->setType(DefinitionParameter::VALUE_BOOLEAN)
48+
->setDefaultValue(false),
4449
(new DefinitionParameter('sse_c_key', $l->t('SSE-C encryption key')))
4550
->setType(DefinitionParameter::VALUE_PASSWORD)
4651
->setFlag(DefinitionParameter::FLAG_OPTIONAL),

0 commit comments

Comments
 (0)