HonoH
Hono2y ago
jacob

Posting files in multipart/form-data gives empty string

Hey everyone.

I've run into a problem where when I try to upload a file to my hono application as multipart/form-data all I get back is an empty string.

In my form I am sending a key of name expected to be a string and image expected to be a file.

But on the receiving end I get { name: 'test', image: '' }, from both req.parseBody() & req.formData()

I'm using CF Workers
image.png
Was this page helpful?