tus / tus-resumable-upload-protocol

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

POST should always include upload-offset #107

Closed ronag closed 7 years ago

ronag commented 7 years ago

Regardless if creation-with-upload is supported or not. Makes client code simpler?

Acconut commented 7 years ago

The offset of a newly created upload will always be 0, in particular if the Creation With Upload extension is not used. How would a client implementation benefit from this change? The reason why the Upload-Offset header must be included, if the Creation With Upload extension is used, is that in this case the POST response must mimic the PATCH response where the header is required.