From 7558426bc62c7cb99e576191b50d21dd3ed31d4c Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 26 Jun 2024 11:21:53 +0300 Subject: [PATCH] Fix max upload size limit --- fileserver/fileserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileserver/fileserver.py b/fileserver/fileserver.py index a150fde..a895580 100644 --- a/fileserver/fileserver.py +++ b/fileserver/fileserver.py @@ -36,7 +36,7 @@ "fileserver.download.cache_timeout_sec", 5 * 60 ) if max_upload_size := config.get("fileserver.upload.max_upload_size_mb", None): - app.config["MAX_CONTENT_LENGTH"] = max_upload_size * 1024 + app.config["MAX_CONTENT_LENGTH"] = max_upload_size * 1024 * 1024 auth_handler = AuthHandler.instance()