Giter Site home page Giter Site logo

Comments (4)

vayam avatar vayam commented on May 16, 2024

I think it is a good idea to make the initial POST request optional. That makes it flexible to integrate with existing upload flows.

If we make POST optional, then I would think we should make Content-Type mandatory as part of PUT requests

PUT /files/24e533e02ec3bc40c387f1a0e460e216 HTTP/1.1
Host: tus.example.org
Content-Type: video/mp4
Content-Length: 100000
Content-Range: bytes 0-99999/200000

from tus-resumable-upload-protocol.

felixge avatar felixge commented on May 16, 2024

If the post is optional, how do you resume an upload that encounters an issue during the first request? I think there still needs to be some mechanism to create the resource initially, but this could be an application-specific one, instead of the proposed POST.

from tus-resumable-upload-protocol.

vayam avatar vayam commented on May 16, 2024

yupp, we have app specific post request that gives out video_file_id, max allowed file size based on quota, uploadserver end point to choose based on geo of client ip. Also signatures and expires param

We could internally make a POST request and map our video_file_id to upload_request_id generated by uploadserver

initial post would look like:
browser -> app server -> uploadserver
POST request would have app specific data as query params. it would be opaque. the uploadserver can interpret those app specific params.

from tus-resumable-upload-protocol.

felixge avatar felixge commented on May 16, 2024

I think this has been sufficiently adressed in the 0.2 release. Stuff like Content-Type etc. still needs to be defined as part of the meta data extension, but that's a separate discussion.

from tus-resumable-upload-protocol.

Related Issues (20)

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.