I can't use a custom ID when uploading images

I’m implementing the upload function using fetch.
When I add formData.append('id', 'this/is/my-customid') I get this error:
Uncaught (in promise) SyntaxError: Unexpected token 'E', "ERROR 5400"... is not valid JSON
If I do not use the id, it uploads normally.
Is there something I’m missing?

I did some tests.
I get the same error when adding metadata.
After changing v2 to v1 everything works fine.
is it an error? Or was it intended?
So why does v2 look worse?
Why doesn’t the documentation explain the difference between v1 and v2?

@asemiglazov Sorry for the non-consensual mention.
But I thought the Cloudflare team should know about this issue.

direct upload v1 has been deprecated, you need to use v2.

Can you help us finding how did you get to use v1? Old links/documentation?

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