Skip to content

docs: fix wrong Request attribute for MAX_FORM_MEMORY_SIZE - #6117

Closed
latent-9 wants to merge 1 commit into
pallets:mainfrom
latent-9:docs/fix-max-form-memory-size-attr
Closed

docs: fix wrong Request attribute for MAX_FORM_MEMORY_SIZE#6117
latent-9 wants to merge 1 commit into
pallets:mainfrom
latent-9:docs/fix-max-form-memory-size-attr

Conversation

@latent-9

@latent-9 latent-9 commented Aug 2, 2026

Copy link
Copy Markdown

The MAX_FORM_MEMORY_SIZE config entry in docs/config.rst cross-references :attr:.Request.max_form_memory_parts``, but there is no max_form_memory_parts attribute on the request. The per-request attribute for this limit is `max_form_memory_size` (Werkzeug's `Request.max_form_memory_size`, whose default `500_000` matches this entry's documented default).

The neighbouring config entries follow the same .Request.<lowercased config name> convention:

  • MAX_CONTENT_LENGTH -> .Request.max_content_length
  • MAX_FORM_PARTS -> .Request.max_form_parts

So MAX_FORM_MEMORY_SIZE should reference .Request.max_form_memory_size. Fixed the attribute name.

The MAX_FORM_MEMORY_SIZE entry cross-references
`.Request.max_form_memory_parts`, which does not exist. The per-request
attribute for this limit is `max_form_memory_size` (its default 500_000
matches this entry). The neighbouring entries follow the same convention
(MAX_CONTENT_LENGTH -> max_content_length, MAX_FORM_PARTS -> max_form_parts).
@davidism

davidism commented Aug 2, 2026

Copy link
Copy Markdown
Member

@davidism davidism closed this Aug 2, 2026
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.

2 participants