We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb9f0c commit 6fc2255Copy full SHA for 6fc2255
packages/s3-store/index.ts
@@ -262,11 +262,13 @@ export class S3Store extends DataStore {
262
])
263
}
264
265
+ const readable = fs.createReadStream(path)
266
+ readable.on('error', reject)
267
if (partSize > this.minPartSize || isFinalChunk) {
- await this.uploadPart(metadata, fs.createReadStream(path), partNumber)
268
+ await this.uploadPart(metadata, readable, partNumber)
269
offset += partSize
270
} else {
- await this.uploadIncompletePart(incompletePartId, fs.createReadStream(path))
271
+ await this.uploadIncompletePart(incompletePartId, readable)
272
273
274
bytesUploaded += partSize
0 commit comments