Skip to content

Need example how to use max_files=n and max_fields=n #2848

Answered by jhominal
Yrij-Zhavoronkov asked this question in Q&A
Discussion options

You must be logged in to vote

The page that you link to describes arguments of starlette's Request.form method.

Unless I am mistaken, the sample code that you are giving here uses FastAPI's system for reading request data. You should ask the people there for how to work with potential limits of number of files/parameters in multipart forms, e.g. on the FastAPI GitHub discussions page.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Yrij-Zhavoronkov
Comment options

@jhominal
Comment options

@Yrij-Zhavoronkov
Comment options

Answer selected by jhominal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants