summary refs log tree commit diff
path: root/synapse/config/repository.py
diff options
context:
space:
mode:
authorMateusz PrzybyƂowicz <uamfhq@gmail.com>2020-10-09 17:58:23 +0200
committerGitHub <noreply@github.com>2020-10-09 16:58:23 +0100
commitca2db5dd0c9fc430a931b4d456fea6a5300b8b42 (patch)
tree5098c681a074d3a0c5c938f4b2e15feadd3652e8 /synapse/config/repository.py
parentAdd type hints to response cache. (#8507) (diff)
downloadsynapse-ca2db5dd0c9fc430a931b4d456fea6a5300b8b42.tar.xz
Increase default max_upload_size from 10M to 50M (#8502)
Signed-off-by: Mateusz PrzybyƂowicz <uamfhq@gmail.com>
Diffstat (limited to '')
-rw-r--r--synapse/config/repository.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/config/repository.py b/synapse/config/repository.py
index 01009f3924..ba1e9d2361 100644
--- a/synapse/config/repository.py
+++ b/synapse/config/repository.py
@@ -100,7 +100,7 @@ class ContentRepositoryConfig(Config):
             "media_instance_running_background_jobs",
         )
 
-        self.max_upload_size = self.parse_size(config.get("max_upload_size", "10M"))
+        self.max_upload_size = self.parse_size(config.get("max_upload_size", "50M"))
         self.max_image_pixels = self.parse_size(config.get("max_image_pixels", "32M"))
         self.max_spider_size = self.parse_size(config.get("max_spider_size", "10M"))
 
@@ -242,7 +242,7 @@ class ContentRepositoryConfig(Config):
 
         # The largest allowed upload size in bytes
         #
-        #max_upload_size: 10M
+        #max_upload_size: 50M
 
         # Maximum number of pixels that will be thumbnailed
         #