Skip to content

Support data downloading/uploading #49

@jeserkin

Description

@jeserkin

Mainly issue is regarding -> https://jmap.io/spec-core.html#binary-data
In session response we have a bunch of different URLs including

{
  "downloadUrl": "http://localhost/download/{accountId}/{blobId}/?type={type}&name={name}",
  "uploadUrl": "http://localhost/upload/{accountId}"
}

So as far as I can tell, what can be done on jmap-client-ts level is:

  • return URL with accountId replaced, since it is present in session response as well.
  • For upload, there could be a type definition for response as mentioned here https://jmap.io/spec-core.html#uploading-binary-data
  • Also for upload, there could be an entire method present, that would allow data upload. End-user should provide only body value, e.g. Blob

If there are any other suggestions on how to proceed with it, then I would love to hear about it.

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