-
Notifications
You must be signed in to change notification settings - Fork 2k
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
@uppy/transloadit: Reset tus
key in the file on error, so retried files are re-uploaded
#4421
Conversation
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.
Nice quick fix 👍
Some things I'm curious about:
- Is
tus
an object? If so, do we loose the tus metadata send viaTus-Metadata
? Would only deleting theid
withintus
do the trick too? - This problem does not exist in @uppy/tus?
Yes, it is an object, but this is for uppy/packages/@uppy/transloadit/src/index.js Lines 141 to 155 in 57a71e1
I could only remove
No, cause for |
Makes sense. Do we want to test this? I think it should be doable in cypress:
|
I've started working on the tests. |
Ok, I was about to. But we don't need to intercept, as we can get failure with that test file ( |
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.
Thanks for creating a test for this. Test may be easier to follow/edit if we take out the massive responses into variables or something. But it's more of a nit.
| Package | Version | Package | Version | | ---------------------- | ------- | ---------------------- | ------- | | @uppy/aws-s3 | 3.1.1 | @uppy/status-bar | 3.1.2 | | @uppy/aws-s3-multipart | 3.3.0 | @uppy/transloadit | 3.1.4 | | @uppy/locales | 3.2.1 | uppy | 3.9.0 | - @uppy/aws-s3-multipart: allowedMetaFields: null means “include all” (Artur Paikin / #4437) - @uppy/aws-s3-multipart: add `shouldUseMultipart ` option (Antoine du Hamel / #4205) - @uppy/transloadit: Reset `tus` key in the file on error, so retried files are re-uploaded (Artur Paikin / #4421) - meta: commit build file that was modified (Antoine du Hamel) - meta: examples: add CORS settings for DigitalOcean Spaces (Antoine du Hamel / #4428) - @uppy/aws-s3: deprecate `timeout` option (Antoine du Hamel / #4298) - @uppy/aws-s3-multipart: make retries more robust (Antoine du Hamel / #4424) - meta: fix badges on README (Antoine du Hamel / #4419)
Fixes #4412