Official documentation: Multipart Forms
Install Falcon (3.0+ required for ASGI) and the
uvicorn
ASGI app server:pip install -U "falcon >= 3.0.0" pip install uvicorn
- Run as
uvicorn test:app
, wheretest:app
is coming from thetest.py
example below. POST
your multipart forms to http://127.0.0.1:8000/submit.
Similarly to ASGI Request
/Response
classes, the ASGI multipart form interface is kept as close to WSGI as possible, with the following additions (made them for WSGI too):
- BodyPart.data becomes (primarily)
BodyPart.get_data()
, but the property exists as a convenience alias. - BodyPart.media becomes (primarily)
BodyPart.get_media()
, but the property exists as a convenience alias. - BodyPart.text becomes (primarily)
BodyPart.get_text()
, but the property exists as a convenience alias.
Feature PR: #1728 -- merged!