Skip to main content

FormPart

One part of a multipart/form-data body: a text field (empty filename and content_type) or a file part.

content (property)​

The field value or the raw file bytes.

content_type (property)​

The part's Content-Type; empty for a text field.

filename (property)​

The file name of a file part; empty for a text field.

name (property)​

The form field name.

__init__​

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.