Comments (4)
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.
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.
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.
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)
- Content-Type / Content-Encoding / Content-Language (HTTP Representation Metadata) HOT 3
- Allow for the server to respond with metadata HOT 9
- Future definition of the Tus-Resumable header HOT 10
- Spam: Nutt
- Spam: Nutt
- Request: Swagger / OpenAPI documentation of the API HOT 8
- Byte-range support for iOS compatibility HOT 2
- > net::ERR_UPLOAD_FILE_CHANGED HOT 2
- Body is not specified in OpenAPI HOT 1
- MIME-type Extension HOT 4
- Unable to resume uploads, Upload-Offset is always 0 HOT 1
- support http/3 HOT 1
- OWASP Considerations HOT 4
- > net::ERR_UPLOAD_FILE_CHANGED HOT 1
- Protocol version confusion HOT 2
- Upload Post-Processing HOT 12
- Ambiguous Tus-Concatenation specifications HOT 4
- Which StatusCode of response must server return, if server want to indicate a success HEAD request HOT 5
- How Can I learn about Tus V2? HOT 3
- Add extension to allow for discovery of existing upload URL HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tus-resumable-upload-protocol.