Post #1919535
2026-05-03 05:47 UTC
I can think of different ways to support resumable uploads with ActivityPub, but — just to see what others are doing —
PeerTube seems to have resumable uploads already.
PeerTube seems to use this protocol for it:
https://github.com/kukhariev/node-uploadx/blob/master/proto.md
I like that it uses Content-Range in the protocol. I would have done the similar.
#ActivityPub #ActivityStreams #FediDev
Replies (1)
-
@reiver@mastodon.social 2026-05-03 06:08
Just thinking out loud — If we wanted to support resumable uploads in C2S API, then — we probably need some URL to upload the file chunks to. … When a user POST to their own outbox, the HTTP "201 Created" response will have a "Location" header that provides a URL. Maybe that could be used as the upload URL. Or, maybe the JSON-LD document at that URL might contain a URL under the "object" field that could be used as the upload URL. Other options too #ActivityPub #ActivityStreams #FediDev