Skip to content

Commit

Permalink
Fix max upload size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
allegroai committed Jun 26, 2024
1 parent ce01e37 commit 7558426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fileserver/fileserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 7558426

Please sign in to comment.