It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.
-
It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.
If, for example, you are working with large files (such as video files) this would matter.
Because if you uploaded 1GB, and the upload stopped, you would want to resume at where it stopped, and not have to upload from the beginning again.
This would be important for ActivityPub C2S adoption.
-
It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.
If, for example, you are working with large files (such as video files) this would matter.
Because if you uploaded 1GB, and the upload stopped, you would want to resume at where it stopped, and not have to upload from the beginning again.
This would be important for ActivityPub C2S adoption.
ACK !
But also it does not look for duplicates.
If you uploaded the 1GB you would not want to upload it again (e.g. mastodon).I am using ipfs fingerprints …
Any suggestions welcome ! -
It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.
If, for example, you are working with large files (such as video files) this would matter.
Because if you uploaded 1GB, and the upload stopped, you would want to resume at where it stopped, and not have to upload from the beginning again.
This would be important for ActivityPub C2S adoption.
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:
node-uploadx/proto.md at master · kukhariev/node-uploadx
Node.js middleware for handling resumable uploads. Contribute to kukhariev/node-uploadx development by creating an account on GitHub.
GitHub (github.com)
I like that it uses Content-Range in the protocol. I would have done the similar.
-
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:
node-uploadx/proto.md at master · kukhariev/node-uploadx
Node.js middleware for handling resumable uploads. Contribute to kukhariev/node-uploadx development by creating an account on GitHub.
GitHub (github.com)
I like that it uses Content-Range in the protocol. I would have done the similar.
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
-
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
@reiver there's a whole section on discovering the upload URL in the wiki page you shared.
-
@reiver there's a whole section on discovering the upload URL in the wiki page you shared.
The "uploadMedia" endpoint?
I assumed resumable uploads would be incompatible with that API endpoint.
If it isn't incompatible, could use that.
-
The "uploadMedia" endpoint?
I assumed resumable uploads would be incompatible with that API endpoint.
If it isn't incompatible, could use that.
@reiver it's barely defined! It's on my to-do list for the next version of ActivityPub, so please give comments and issues!
-
@reiver it's barely defined! It's on my to-do list for the next version of ActivityPub, so please give comments and issues!
I created an issue for it:
resumable uploads for ActivityPub · Issue #578 · w3c/activitypub
ActivityPub-based applications often allow users to upload audio, images, videos, and other file types, though most currently rely on non-ActivityPub APIs for this functionality. These files can be large — for example, a video may be sev...
GitHub (github.com)
Let me know if it needs more information.
-
@reiver it's barely defined! It's on my to-do list for the next version of ActivityPub, so please give comments and issues!
-
I created an issue for it:
resumable uploads for ActivityPub · Issue #578 · w3c/activitypub
ActivityPub-based applications often allow users to upload audio, images, videos, and other file types, though most currently rely on non-ActivityPub APIs for this functionality. These files can be large — for example, a video may be sev...
GitHub (github.com)
Let me know if it needs more information.
-
R relay@relay.mycrowd.ca shared this topic
