Skip to content

Commit

Permalink
Handle larger custom list updates. (#2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdilauro authored Jan 9, 2025
1 parent 4317bb0 commit b20f0d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/palace/manager/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ def get_locale():
Configuration.localization_languages()[0]
]
app.config["BABEL_TRANSLATION_DIRECTORIES"] = "../translations"
# TODO: Temporary fix to handle form data larger than 500,000 bytes.
# Sometimes custom list form data was too large, resulting in 413 response.
# The value here is chosen to roughly match the Docker nginx config.
app.config["MAX_FORM_MEMORY_SIZE"] = 75 * 1024 * 1024
babel = Babel(app, locale_selector=get_locale)

# We use URIs as identifiers throughout the application, meaning that
Expand Down

0 comments on commit b20f0d9

Please sign in to comment.