Skip to content

Receive a file when sending from a client without multipart. #241

Closed Answered by kartikk221
Mint-Joy asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, you should use multipart because multipart allows for the file to be gradually streamed.

Alternatively, what you can do is pipe the Request to one of your own form handlers as the Request for hyper-express is a ReadableStream which can be used to consume raw body data.

I will say your payload does look like a multi-part payload to me, so why don't you try following this guide to implement a potential solution https://github.com/kartikk221/hyper-express/blob/master/docs/MultipartField.md

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kartikk221
Comment options

You must be logged in to vote
1 reply
@kartikk221
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants