-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@uppy/aws-s3-multipart: add
shouldUseMultipart
option (#4205)
* @uppy/aws-s3-multipart: add support for non-multipart uploads * Set threshold at 100 MiB * add `shouldUseMultipart` option * makes the change semver-minor, the breaking change should be done in the next major * fix merge conflict * fix lint * fix crash i think it can be considered a breaking change, because i'm changing the signature of uploadPartBytes, which is an option. however I don't see uploadPartBytes documented in our docs, so maybe we can get away with a non major: - onProgress now gets passed number of bytes instead of `ev` - a new `size` argument (previously size was on body) * fix shouldUseMultipart confusingness * handle zero-size files as it was before * remove breaking change in `uploadPartBytes` * fix `allowedMetaFields` for non-multipart * make backwards compatible and fix meta * nits * fix metadata for non-multipart (inside multipart) * Remove second `fileSize` argugment from shouldUseMultipart, because users can use file.size * console.log --------- Co-authored-by: Mikael Finstad <finstaden@gmail.com> Co-authored-by: Artur Paikin <artur@arturpaikin.com>
- Loading branch information
1 parent
acf2c8e
commit 8e15f27
Showing
4 changed files
with
101 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters