Skip to content
New issue

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

how to pipe a multipart request #193

Open
ManuelFernando opened this issue Aug 31, 2024 · 1 comment
Open

how to pipe a multipart request #193

ManuelFernando opened this issue Aug 31, 2024 · 1 comment

Comments

@ManuelFernando
Copy link

Normally in express we can use req.pipe(busboy) with this we can create a pipeline between browser, our server and a service like S3 where files don't have to upload first in the server and after upload to S3. Then according to every chuck arrives, this can be sent directly in S3.

The only way that I found is this, but this is not the ideal way to streaming uploads

ctx.req.raw.body.pipeTo(writableStream)

@ManuelFernando ManuelFernando changed the title how to pipe a request how to pipe a multipart request Aug 31, 2024
@Markyiptw
Copy link

You can see an example from #185 , just that currently there's a bug if you cancel the stream.

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

No branches or pull requests

2 participants