Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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/aws-s3-multipart: add
shouldUseMultipart
option #4205@uppy/aws-s3-multipart: add
shouldUseMultipart
option #4205Changes from 8 commits
1ef2314
55f2c37
5cb4d30
f7c54db
c140d06
ac34123
1717740
5a62203
5cd3cc3
9e3d25e
cbc56af
f7ccb72
108d100
36a9a01
f4b36e4
c665fdd
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Should this be checking shouldUseMultipart like we do for uploadFile?
https://github.com/transloadit/uppy/pull/4205/files#diff-bfb35efb13daef9d39e5d9a560b0a4ac5b0ad1c4c76bb461dc3724d5e5d7da7cR249-R252
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.
Why is
fileSize
the second argument? Doesn't it already live infile
?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.
It's provided as a convenience.
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.
I think it's cleaner to just have
file
. It's not some deep object, it's simplyfile.size
. We can add another argument in the future when people start using it more and need more things or conveniences.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.
I agree that if UppyFile always has a
.size
, then it's unnecessary/confusing/redundant to have a separate argument for it as wellThere 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.
Changed.