GitHub

PersistedFile

API reference for PersistedFile.

A file part written to path.

Attributes

AttributeTypeDescription
keystr
namestr
content_typestr
pathstr
tagLiteral['PersistedFile'] = 'PersistedFile'

Functions

__init__

__init__(key, name, content_type, path) -> None
ParameterTypeDescription
keystr
namestr
content_typestr
pathstr

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,
    }