Skip to content
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

refactor: remove ObjectUplaoder and turn stream uploading #1227

Merged
merged 27 commits into from
Nov 28, 2023

Conversation

trim21
Copy link
Contributor

@trim21 trim21 commented Nov 3, 2023

ref #1045

previously, if user want to upload a stream, for example: s3.putObject('...', '...', fs.createReadStream('...')), minio-js will use maxObjectSize as object size and 500 mb as chunk size.

after this patch, when putObject is used with a stream created by fs.createReadStream, minio-js will try to read file size as object size, and use proper chunk size.

@trim21 trim21 changed the title refactor: remove ObjectUplaoder and turn stream uploading refactor: remove ObjectUplaoder and turn stream uploading Nov 3, 2023
@trim21 trim21 closed this Nov 3, 2023
@trim21 trim21 reopened this Nov 3, 2023
@trim21 trim21 closed this Nov 3, 2023
@trim21 trim21 reopened this Nov 16, 2023
@trim21 trim21 marked this pull request as ready for review November 21, 2023 08:32
@trim21
Copy link
Contributor Author

trim21 commented Nov 22, 2023

@prakashsvmx

Copy link
Contributor

@aldy505 aldy505 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, but here are some nitpicks.

src/internal/helper.ts Outdated Show resolved Hide resolved
src/internal/helper.ts Show resolved Hide resolved
src/internal/helper.ts Show resolved Hide resolved
@trim21 trim21 requested a review from aldy505 November 24, 2023 14:28
Copy link
Contributor

@aldy505 aldy505 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@prakashsvmx prakashsvmx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested. Changes look good to me. 👍

@trim21
Copy link
Contributor Author

trim21 commented Nov 27, 2023

@kaankabalak

@prakashsvmx prakashsvmx merged commit 863896d into minio:master Nov 28, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants