A file part written to path.
Attributes#
| Attribute | Type | Description |
|---|---|---|
key | str | |
name | str | |
content_type | str | |
path | str | |
tag | Literal['PersistedFile'] = 'PersistedFile' |
Functions#
__init__#
__init__(key, name, content_type, path) -> None| Parameter | Type | Description |
|---|---|---|
key | str | |
name | str | |
content_type | str | |
path | str |
to_json#
to_json() -> dict[str, object]Returns dict[str, object]
def to_json(self) -> dict[str, object]:
return {
"_id": "@effect/platform/Multipart/Part",
"_tag": "PersistedFile",
"key": self.key,
"name": self.name,
"contentType": self.content_type,
"path": self.path,
}