mirror of
https://github.com/matrix-org/synapse-s3-storage-provider.git
synced 2024-10-23 07:29:40 +00:00
Add extra_args comment and link to docs
This commit is contained in:
parent
5957773cf7
commit
139e44673c
1 changed files with 3 additions and 0 deletions
|
@ -62,6 +62,9 @@ class S3StorageProviderBackend(StorageProvider):
|
||||||
def __init__(self, hs, config):
|
def __init__(self, hs, config):
|
||||||
self.cache_directory = hs.config.media.media_store_path
|
self.cache_directory = hs.config.media.media_store_path
|
||||||
self.bucket = config["bucket"]
|
self.bucket = config["bucket"]
|
||||||
|
# A dictionary of extra arguments for uploading files.
|
||||||
|
# See https://boto3.amazonaws.com/v1/documentation/api/latest/reference/customizations/s3.html#boto3.s3.transfer.S3Transfer.ALLOWED_UPLOAD_ARGS
|
||||||
|
# for a list of possible keys.
|
||||||
self.extra_args = config["extra_args"]
|
self.extra_args = config["extra_args"]
|
||||||
self.api_kwargs = {}
|
self.api_kwargs = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue