assets permission

What token permissions do I need to enable direct assets upload ?
Cloudflare Docs
API token permissions
Permissions are segmented into three categories based on resource:
Cloudflare Docs
Direct Uploads
Upload assets through the Workers API.
8 Replies
texan
texanโ€ข3w ago
You would need Workers Edit
Brage
BrageOPโ€ข3w ago
Which one ? ๐Ÿ˜„ I already have edit on worker scripts
No description
Brage
BrageOPโ€ข3w ago
okay I figured it out ... I thought I could skip the manifest and only do direct uploads, but I can't ๐Ÿ˜„ Should have read the docs fully ๐Ÿ˜› but now I get a empty response without any JWT and no error after the file upload step ....
Brage
BrageOPโ€ข3w ago
I get a 202 status code, but expect 200. Also no JWT completion token in response. My code seems to match this the example code https://developers.cloudflare.com/workers/static-assets/direct-upload/#programmatic-example
Cloudflare Docs
Direct Uploads
Upload assets through the Workers API.
Brage
BrageOPโ€ข3w ago
GitHub
Uploading worker assets doesn't work (no completion token) ยท Issue...
Confirm this is a Go library issue and not an underlying Cloudflare API issue This is an issue with the Go library Describe the bug I'm trying to use the SDK to upload assets to a worker. Howev...
Brage
BrageOPโ€ข3w ago
Yeah ... that fixes it, I spend our debugging this ...
texan
texanโ€ข3w ago
You just needed to update cloudflare-go?
Brage
BrageOPโ€ข3w ago
no, I don't won't to update to a unreleased version. I just implemented it without going through that library.

Did you find this page helpful?