Skip to content

Commit

Permalink
Set MAX_FORM_MEMORY_SIZE limit to 20 MB
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Dec 17, 2024
1 parent 1675f4f commit 42fde04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annif/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Config(object):
PROJECTS_CONFIG_PATH = os.environ.get("ANNIF_PROJECTS", default="")
DATADIR = os.environ.get("ANNIF_DATADIR", default="data")
INITIALIZE_PROJECTS = False
MAX_FORM_MEMORY_SIZE = None # Disable Flask's limit
MAX_FORM_MEMORY_SIZE = 20_000_000 # Increase from Flask's default limit


class ProductionConfig(Config):
Expand Down

0 comments on commit 42fde04

Please sign in to comment.