Want some help with the Hono JS TypeError: formKey is not iterable. #2660
Unanswered
rohit-nayak123
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Try adding the content type header headers: {
'Content-Type': 'multipart/formdata',
}, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am trying to make an image compressor using NextJS as the frontend and HonoJS as the backend. however suddenly I got this annoying error message
What the program does is take multiple images as input and send them to a server made using Hono and after that, the server compresses them as much as possible and stores them
Here is the fronted code. (using next js )
Also, here is my backend code.
As far as my observation goes, the selected code is the main reason for the error. However, the selected code is from the official documentation.
const body = await c.req.parseBody({ all: true })
body['hoge']
Beta Was this translation helpful? Give feedback.
All reactions