Skip to content

Commit 17d30ad

Browse files
lawrence-u10dclaude
andcommitted
fix(api): add max_part_size param to _get_form monkey-patch
Starlette 1.0.0 added max_part_size to _get_form's signature and form() forwards it. Without this parameter, the monkey-patch raises TypeError on all multipart form uploads. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 278665e commit 17d30ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

prepline_general/api/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ async def patched_get_form(
8686
*,
8787
max_files: int | float = 1000,
8888
max_fields: int | float = 1000,
89+
max_part_size: int = 1024 * 1024,
8990
) -> FormData:
9091
"""
9192
Call the original get_form, and iterate the results

0 commit comments

Comments
 (0)