We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pump(zipStream, writeStream)
for example; zip file: upload.zip include a foo.json, then upload it use stream, when i get the stream at server. and do this;
foo.json
const ctx = this.ctx; const stream = await ctx.getFileStream(); const target = path.join(this.app.baseDir, 'app/upload', 'demo.zip'); const writeStream = createWriteStream(target); pump(stream ,writeStream )
the file render at disk actualy is demo.zip inclued upload -> foo.json. if I do this. it will be normal
upload -> foo.json
const ctx = this.ctx; const stream = await ctx.getFileStream(); const target = path.join(this.app.baseDir, 'app/upload', 'demo.zip'); const writeStream = createWriteStream(target); stream.pipe(writeStream); stream.on('finish', () => { stream.close(); })
The text was updated successfully, but these errors were encountered:
Doesn’t sound like a pump issue. Pump just pipes stream together. Maybe the zip thing is using a custom stream impl?
In anycase feel free to send a minimal runnable testcase with as few deps as possible and I’ll take a look
Sorry, something went wrong.
No branches or pull requests
for example;
zip file: upload.zip include a
foo.json
, then upload it use stream, when i get the stream at server. and do this;the file render at disk actualy is demo.zip inclued
upload -> foo.json
. if I do this. it will be normalThe text was updated successfully, but these errors were encountered: