Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Blob/chunk/file storage for images and videos #14

Closed
dumblob opened this issue Oct 4, 2022 · 6 comments
Closed

Blob/chunk/file storage for images and videos #14

dumblob opened this issue Oct 4, 2022 · 6 comments

Comments

@dumblob
Copy link

dumblob commented Oct 4, 2022

I wonder whether this JMAP server could be (mis)used to synchronize image albums (incl. videos) without any email/calendar/contacts functionality involved?

What would be the size limits for such "blobs" of data? JMAP does not have any such limits IIRC but I might easily be wrong.

Partially related: #9

@mdecimus
Copy link
Member

mdecimus commented Oct 4, 2022

Even though you can upload and retrieve arbitrary blobs, these will be deleted once the housekeeper purge tasks runs since they are not linked to any record. To avoid deletion, you could link the blobs to an Email draft but that would be a bit hackish. Once the JMAP Blob specification is implemented, it will be possible to upload any type of blobs to Stalwart JMAP.

The maximum size of blobs is configured with the max-size-upload parameter.

@dumblob
Copy link
Author

dumblob commented Oct 4, 2022

Thanks for the detailed and elaborate explanation. My question is answered.

I am looking forward to the JMAP Blob spec being usable and to its implementation in jmap-server!

@dumblob dumblob closed this as completed Oct 4, 2022
@dumblob
Copy link
Author

dumblob commented Oct 4, 2022

Slightly related question (separate issue in this tracker would be overkill IMHO):

@brong could you maybe extend the JMAP Blob spec with upload resumption? It seems to be from the spec there is no direct support for the resume operation of a long upload. Or am I reading it wrong?

I am imagining something like tus.

@brong
Copy link

brong commented Oct 4, 2022 via email

@dumblob
Copy link
Author

dumblob commented Oct 4, 2022

Blob/* no, because it's a json object within jmap, the right thing would be to extend core in a separate spec.

Ah, ok.

Having said that, thanks for the pointer! I am interested in this as a component of the large file upload problem which I'm working on various parts of.

Nice! May I follow the development somewhere (ideally email subscription or Github repository or alike)?

Btw. tus is really state of the art and is a great source of inspiration.

@brong
Copy link

brong commented Oct 4, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants