H
Hono5mo 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
No description
1 Reply
Jacob
Jacob5mo ago
update: I tried uploading a file via postman and it was working as expected. It seems that the blob sent from my react native application may be corrupt or incompatible in some way
Want results from more Discord servers?
Add your server