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.
2 parents 45872ae + 215878e commit be6848dCopy full SHA for be6848d
packages/common/file-stream/streamable-file.ts
@@ -16,6 +16,7 @@ export class StreamableFile {
16
this.stream = new Readable();
17
this.stream.push(bufferOrReadStream);
18
this.stream.push(null);
19
+ this.options.length ??= bufferOrReadStream.length;
20
} else if (bufferOrReadStream.pipe && isFunction(bufferOrReadStream.pipe)) {
21
this.stream = bufferOrReadStream;
22
}
0 commit comments