Skip to content

Commit

Permalink
makes the change semver-minor, the breaking change should be done in …
Browse files Browse the repository at this point in the history
…the next major
  • Loading branch information
aduh95 committed Apr 26, 2023
1 parent 5cb4d30 commit f7c54db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@uppy/aws-s3-multipart/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ export default class AwsS3Multipart extends BasePlugin {
// TODO: this is currently opt-in for backward compat, switch to opt-out in the next major
allowedMetaFields: null,
limit: 6,
shouldUseMultipart: true, // In the next major, the default should be switched as the following:
// eslint-disable-next-line no-bitwise
shouldUseMultipart: (file, fileSize) => fileSize >> 10 >> 10 > 100,
// shouldUseMultipart: (file, fileSize) => fileSize >> 10 >> 10 > 100,
retryDelays: [0, 1000, 3000, 5000],
createMultipartUpload: this.createMultipartUpload.bind(this),
listParts: this.listParts.bind(this),
Expand Down

0 comments on commit f7c54db

Please sign in to comment.