-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lower TUS max chunk size from infinite to 0.1 GB #2584
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
why would this fail? just because the POST request cannot stat the uploaded file when the upload finishes after the token has expired. IMO this is not the correct fix:
now taking this one step further:
The client should be able to transfer as many bytes as possible. Without chunking. He should be able to resume the upload and discover how many bytes are already on the server. For that the transfer token needs to be valid for a longer period of time. The TUS protocol has an expiration extension that lets clients know how long they can resume an upload: https://tus.io/protocols/resumable-upload.html#expiration The |
Max chunk size default should not be lowered if not needed. The upload needs to be fixed. In the meantime one could work around by lowering the chunk size to mitigate expiring tokens. |
The max chunk size has to be limited when we go in production with the product, maybe to 100 MB. It has to be configurable, but let us have a reasonable default pls to provide a robust product. Otherwise we end up with support load with every new installation, because in most installations there will be a limit. |
@butonic is right, we should not set a arbitrary limit without reasoning. In tus/tus-resumable-upload-protocol#93 (comment) are some examples. But there is no "hard limit" for a "general usecase". It highly depends on the specific usecase... That's why it is configurable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please, ship that!
@TheOneRing agreed.
Description
We've lowered the TUS max chunk size from infinite to 0.1GB so that chunking actually happens.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: