Skip to content

Commit

Permalink
Resolve 413 Errors by disabling Flask's MAX_FORM_MEMORY_SIZE limit
Browse files Browse the repository at this point in the history
  • Loading branch information
juhoinkinen committed Dec 16, 2024
1 parent 3297ce1 commit 1675f4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions annif/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +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


class ProductionConfig(Config):
Expand Down

0 comments on commit 1675f4f

Please sign in to comment.