Images docs are wrong (direct_upload v2)

Hello, images docs are wrong. Need urgent fix!

this is how you can create direct_upload v2 url with Node.js Axios.
The backend of cf is fault. It wants multipart form even on that json request. It has bug. I’m paying for this product. Fix it !!! direct_upload is not a image upload endpoint, it’s a basic json endpoint for creating direct_upload URL.

await axios.post(
      `https://api.cloudflare.com/client/v4/accounts/${cfAccountId}/images/v2/direct_upload`,
      {},
      {
        headers: {
          Authorization: `Bearer ${cfApiKey}`,
          "Content-Type": "application/x-www-form-urlencoded",
        },
      }
    );

Fault docs url:

2 Likes

I spent 1 hour cos I trusted the docs. thank you for saving me.
writing line below for search engines to pick:
above is example on how Cloudflare image direct upload works. the docs is buggy

1 Like

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