Skip to content

Attachment upload and download (RFC 8621 Blob) #14

Description

@SashankBhamidi

No blob/attachment support. JMAP handles binary data separately from event content.

Add:

upload_attachment(data: bytes, content_type: str) -> str   # blob ID
download_attachment(blob_id: str) -> bytes
attach_to_event(event_id, blob_id, name, content_type)
get_event_attachments(event_id) -> list

uploadUrl and downloadUrl come from the Session object. They're templated per RFC 8620 §6: {blobId}, {type}, {name} placeholders. Both sync and async clients need these methods via _JMAPClientBase.

Also update the JSCalendar links property handling in the convert layer, since links can reference blob IDs for managed attachments.

  • Integration test: upload, attach, retrieve, download, verify content

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions