Skip to content

refactor: remove ObjectUplaoder and turn stream uploading#1227

Merged
prakashsvmx merged 27 commits intominio:masterfrom
trim21:object-upload
Nov 28, 2023
Merged

refactor: remove ObjectUplaoder and turn stream uploading#1227
prakashsvmx merged 27 commits intominio:masterfrom
trim21:object-upload

Conversation

@trim21
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

trim21 commented Nov 22, 2023

@prakashsvmx

Copy link
Copy Markdown
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.

@trim21 trim21 requested a review from aldy505 November 24, 2023 14:28
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

trim21 commented Nov 27, 2023

@kaankabalak

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