tus / tus-resumable-upload-protocol

Open Protocol for Resumable File Uploads
https://tus.io
MIT License
1.49k stars 102 forks source link

Upload-Defer-Length implicit? #111

Closed ronag closed 7 years ago

ronag commented 7 years ago

Why is it when no upload-length Upload-Defer-Length is not implicit? If it was then a tus server would be able to receive data from streaming non tus clients.

Acconut commented 7 years ago

We believe that explicitly deferring the upload length is superior. Imagine a situation where the Upload-Length header is not presented in the POST request. The server has no chance to know whether this was intentionally and the clients does not know the length yet or if it was just a mistake. Even worse, in later situation the client will have a hard time debugging the issue why the uploads are never finishing. Therefore you are required to explicitly include the Upload-Defer-Length header.

Acconut commented 7 years ago

If it was then a tus server would be able to receive data from streaming non tus clients.

I don't think so you still need to include the Tus-Resumable header.