Skip to content

Commit 7558426

Browse files
author
allegroai
committed
Fix max upload size limit
1 parent ce01e37 commit 7558426

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileserver/fileserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"fileserver.download.cache_timeout_sec", 5 * 60
3737
)
3838
if max_upload_size := config.get("fileserver.upload.max_upload_size_mb", None):
39-
app.config["MAX_CONTENT_LENGTH"] = max_upload_size * 1024
39+
app.config["MAX_CONTENT_LENGTH"] = max_upload_size * 1024 * 1024
4040

4141
auth_handler = AuthHandler.instance()
4242

0 commit comments

Comments
 (0)