Giter VIP home page Giter VIP logo

Comments (2)

Acconut avatar Acconut commented on August 26, 2024 1

Personally I would vote against allow this. I do not really see a use case but it would require more complexity in the client implementations. I like to understand resumable uploads as append-only files. Each transferred chunk simply added to the end of the current upload. With this context, my answers for the other questions would be:

can it skip back to any gap in the bytes?

No.

ie must the offset generated by the server be monotonically increasing?

Yes. This guarantee of monotonically increasing offsets can allow for great reduction of complexity for clients and server compared to when client and server must handle basically arbitrary offsets.

from tus-v2.

gregw avatar gregw commented on August 26, 2024

I also see no harm in skipping forward.

But once it has done so, can it skip back to any gap in the bytes? ie must the offset generated by the server be monotonically increasing?

I think it is OK to send an offset less that a previous one, so long as #53 requires that any resumed bytes are identical to what was originally sent (or would have been sent).

from tus-v2.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.