Skip to content

fix(webui): allow large chapter forms - #191

Merged
k0sm0naft merged 1 commit into
denizsafak:mainfrom
hydraxman:fix/large-chapter-form-limits
Jul 15, 2026
Merged

fix(webui): allow large chapter forms#191
k0sm0naft merged 1 commit into
denizsafak:mainfrom
hydraxman:fix/large-chapter-form-limits

Conversation

@hydraxman

Copy link
Copy Markdown

Summary

  • raise Flask's in-memory form and multipart field limits for books with many chapters
  • cover both URL-encoded and multipart wizard submissions with regression tests
  • require Flask 3.1+, where these form-limit configuration keys are supported

Problem

The chapter wizard submits several fields per chapter. Large books can exceed Werkzeug's default form memory or multipart field limits and receive HTTP 413 before /wizard/update runs, even though the request is far below the existing 400 MB upload limit.

Testing

  • .venv/bin/python -m pytest -q tests/test_webui_form_limits.py — 2 passed
  • uv tool run ruff check tests/test_webui_form_limits.py — passed
  • python3 -m compileall -q abogen/webui/app.py tests/test_webui_form_limits.py — passed
  • git diff --check — passed

Fixes #167

@k0sm0naft
k0sm0naft merged commit d5c2a81 into denizsafak:main Jul 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

413 REQUEST ENTITY TOO LARGE on chapter selection with large EPUBs

3 participants