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()