You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx.request.body[unparsed] give me undefined when content-type is multipart/form-data
How can i get raw data from multipart/form-data?
Actual behavior
console.log(ctx.request.body) // {.path:'hi' } <- i send this too with file. but there is no Symbol even i set `includeUnparsed: true, nmmultipart: true`
console.log(ctx.request.files) // { file: PersistentFile } <- i send this file
console.log(ctx.request.body[unparsed] // nothing. but if content-type is `application/json`, it works properly
Expected behavior
i want to access to content of form data (include both files and text i send) for proxy
how to get the stream?
Code to reproduce
Checklist
I have searched through GitHub issues for similar issues.
I have completely read through the README and documentation.
I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
The text was updated successfully, but these errors were encountered:
Describe the bug
Node.js version:
18.x
OS version:
m1 mac
Description:
ctx.request.body[unparsed]
give me undefined when content-type is multipart/form-dataHow can i get raw data from multipart/form-data?
Actual behavior
Expected behavior
i want to access to content of form data (include both files and text i send) for proxy
how to get the stream?
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: