Including metadata results in code: 5400, message: "Bad request: Error parsing form fields

Hello I am able to upload images to cloudflare, but whenever I include metadata, the request fails, anyone else is experiencing this same issue?

const form = new FormData()
form.append('file', blob,
form.append('metadata', JSON.stringify({ hello: 'world' }))

I tried also with meta and any other parameter besides “file” results in 5400 error

It’s likely formdata doesn’t include boundary

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.