Describe the bug
If a remote resource is deferred and the server reports the "Upload-Defer-Length: 1" header,
tus-js-client is not able to upload against the resource without options.uploadLengthDeferred.
The protocol does not enfoce this. Upload-Length can be sent with the very next PATCH request.
Thank you for reporting this! I agree with you that this should not happen. Seeing that you already worked on a patch, would you be willing to submit a PR for this?
Describe the bug If a remote resource is deferred and the server reports the "Upload-Defer-Length: 1" header, tus-js-client is not able to upload against the resource without options.uploadLengthDeferred. The protocol does not enfoce this. Upload-Length can be sent with the very next PATCH request.
To Reproduce Create a deferred resource.
Try to upload against the resource without options.uploadLengthDeferred Error: "tus: invalid or missing length value"
Expected behavior It should be possible to upload against the deferred resource without options.uploadLengthDeferred
Setup details