Skip to content

How to configure MultipartParseOptions? #2019

Discussion options

You must be logged in to vote

I answered my own question by examining the source:

from falcon.media.multipart import MultipartFormHandler, MultipartParseOptions

options = MultipartParseOptions()
options.max_body_part_count = 0

app = falcon.App()
app.req_options.media_handlers[falcon.MEDIA_MULTIPART] = MultipartFormHandler(options)

It's weird you can't set options in the constructor.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by rogerrohrbach
Comment options

You must be logged in to vote
1 reply
@rogerrohrbach
Comment options

Comment options

You must be logged in to vote
0 replies
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