How to upload images directly from web

using curl
the information like this :
curl --request POST
–url https://api.cloudflare.com/client/v4/accounts/:account_id/images/v1/direct_upload
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer :token’

so i put the account id and token that i got from images dashboard, but the result was authentication error, is there any way to generate token from the key in the dashboard??

answer my question myself:
so i need to create api token in cloudflare worker section that set edit on images account,
i think it should be documented otherwise newbie like me will confuse

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.