Skip to content

Commit

Permalink
@tus/s3-store: fix min part size condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Murderlon committed Aug 30, 2023
1 parent 872b021 commit 1abda4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/s3-store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class S3Store extends DataStore {

const readable = fs.createReadStream(path)
readable.on('error', reject)
if (partSize > this.minPartSize || isFinalChunk) {
if (partSize >= this.minPartSize || isFinalChunk) {
await this.uploadPart(metadata, readable, partNumber)
offset += partSize
} else {
Expand Down

0 comments on commit 1abda4c

Please sign in to comment.