Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. 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.

Scheduled Pinned Locked Moved Uncategorized
activitypubactivitystreamsfedidev
10 Posts 4 Posters 14 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • reiver@mastodon.socialR This user is from outside of this forum
    reiver@mastodon.socialR This user is from outside of this forum
    reiver@mastodon.social
    wrote last edited by
    #1

    It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.

    Link Preview Image
    SocialCG/ActivityPub/MediaUpload - W3C Wiki

    favicon

    (www.w3.org)

    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.

    #ActivityPub #ActivityStreams #FediDev

    sl007@digitalcourage.socialS reiver@mastodon.socialR 2 Replies Last reply
    0
    • reiver@mastodon.socialR reiver@mastodon.social

      It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.

      Link Preview Image
      SocialCG/ActivityPub/MediaUpload - W3C Wiki

      favicon

      (www.w3.org)

      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.

      #ActivityPub #ActivityStreams #FediDev

      sl007@digitalcourage.socialS This user is from outside of this forum
      sl007@digitalcourage.socialS This user is from outside of this forum
      sl007@digitalcourage.social
      wrote last edited by
      #2

      @reiver

      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 !

      1 Reply Last reply
      0
      • reiver@mastodon.socialR reiver@mastodon.social

        It seems as if the uploadMedia ActivityPub extension does not provide a way to resume an upload that didn't previously compete.

        Link Preview Image
        SocialCG/ActivityPub/MediaUpload - W3C Wiki

        favicon

        (www.w3.org)

        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.

        #ActivityPub #ActivityStreams #FediDev

        reiver@mastodon.socialR This user is from outside of this forum
        reiver@mastodon.socialR This user is from outside of this forum
        reiver@mastodon.social
        wrote last edited by
        #3

        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:

        Link Preview Image
        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.

        favicon

        GitHub (github.com)

        I like that it uses Content-Range in the protocol. I would have done the similar.

        #ActivityPub #ActivityStreams #FediDev

        reiver@mastodon.socialR 1 Reply Last reply
        0
        • reiver@mastodon.socialR reiver@mastodon.social

          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:

          Link Preview Image
          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.

          favicon

          GitHub (github.com)

          I like that it uses Content-Range in the protocol. I would have done the similar.

          #ActivityPub #ActivityStreams #FediDev

          reiver@mastodon.socialR This user is from outside of this forum
          reiver@mastodon.socialR This user is from outside of this forum
          reiver@mastodon.social
          wrote last edited by
          #4

          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

          evan@cosocial.caE 1 Reply Last reply
          0
          • reiver@mastodon.socialR reiver@mastodon.social

            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

            evan@cosocial.caE This user is from outside of this forum
            evan@cosocial.caE This user is from outside of this forum
            evan@cosocial.ca
            wrote last edited by
            #5

            @reiver there's a whole section on discovering the upload URL in the wiki page you shared.

            reiver@mastodon.socialR 1 Reply Last reply
            0
            • evan@cosocial.caE evan@cosocial.ca

              @reiver there's a whole section on discovering the upload URL in the wiki page you shared.

              reiver@mastodon.socialR This user is from outside of this forum
              reiver@mastodon.socialR This user is from outside of this forum
              reiver@mastodon.social
              wrote last edited by
              #6

              @evan

              The "uploadMedia" endpoint?

              I assumed resumable uploads would be incompatible with that API endpoint.

              If it isn't incompatible, could use that.

              evan@cosocial.caE 1 Reply Last reply
              0
              • reiver@mastodon.socialR reiver@mastodon.social

                @evan

                The "uploadMedia" endpoint?

                I assumed resumable uploads would be incompatible with that API endpoint.

                If it isn't incompatible, could use that.

                evan@cosocial.caE This user is from outside of this forum
                evan@cosocial.caE This user is from outside of this forum
                evan@cosocial.ca
                wrote last edited by
                #7

                @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@mastodon.socialR mariusor@metalhead.clubM 2 Replies Last reply
                0
                • evan@cosocial.caE evan@cosocial.ca

                  @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@mastodon.socialR This user is from outside of this forum
                  reiver@mastodon.socialR This user is from outside of this forum
                  reiver@mastodon.social
                  wrote last edited by
                  #8

                  @evan

                  I created an issue for it:

                  Link Preview Image
                  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...

                  favicon

                  GitHub (github.com)

                  Let me know if it needs more information.

                  mariusor@metalhead.clubM 1 Reply Last reply
                  0
                  • evan@cosocial.caE evan@cosocial.ca

                    @reiver it's barely defined! It's on my to-do list for the next version of ActivityPub, so please give comments and issues!

                    mariusor@metalhead.clubM This user is from outside of this forum
                    mariusor@metalhead.clubM This user is from outside of this forum
                    mariusor@metalhead.club
                    wrote last edited by
                    #9

                    @evan that looks like a really unsanitary upload method to me. I always imagined that uploadMedia was used for keeping concerns separate between object creation and media upload. Having them both present in the same place would have made more sense to me directly in an inbox/outbox.

                    @reiver

                    1 Reply Last reply
                    0
                    • reiver@mastodon.socialR reiver@mastodon.social

                      @evan

                      I created an issue for it:

                      Link Preview Image
                      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...

                      favicon

                      GitHub (github.com)

                      Let me know if it needs more information.

                      mariusor@metalhead.clubM This user is from outside of this forum
                      mariusor@metalhead.clubM This user is from outside of this forum
                      mariusor@metalhead.club
                      wrote last edited by
                      #10

                      @evan I added a comment there describing a counter-proposal for the actual mechanism described in the SocialCG document, if alternatives are still under consideration.

                      @reiver apologies for piggybacking on your ticket. 😄 🐽

                      1 Reply Last reply
                      1
                      0
                      • R relay@relay.mycrowd.ca shared this topic
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups