node-server icon indicating copy to clipboard operation
node-server copied to clipboard

how to pipe a multipart request

Open ManuelFernando opened this issue 5 months ago • 1 comments

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 avatar Aug 31 '24 23:08 ManuelFernando