What a parse reads from the fiber's references.
Attributes#
| Attribute | Type | Description |
|---|---|---|
max_parts | int | None | |
max_field_size | ByteSize | |
max_part_size | ByteSize | None | |
max_total_size | ByteSize | None | |
field_mime_types | tuple[str, ...] |
Functions#
__init__#
__init__(max_parts, max_field_size, max_part_size, max_total_size, field_mime_types) -> None| Parameter | Type | Description |
|---|---|---|
max_parts | int | None | |
max_field_size | ByteSize | |
max_part_size | ByteSize | None | |
max_total_size | ByteSize | None | |
field_mime_types | tuple[str, ...] |
is_file#
is_file(info) -> bool| Parameter | Type | Description |
|---|---|---|
info | mp.PartInfo |
Returns bool
def is_file(self, info: mp.PartInfo) -> bool:
if any(mime in info.content_type for mime in self.field_mime_types):
return False
return mp.default_is_file(info)