wrangler.toml where?

Hello, I just created worker via Wrangler CLI and I would like to edit my worker.js and wrangler.toml - I am unable to locate the wrangler.toml in Cloudflare dashboard - where should it be or do I have to create it manually?
5 Replies
szef0
szef0OP•2y ago
ok, I just would like to use worker to be able to upload files to R2 - so I just edit worker.js in dashboard and where excatly should I put the wrangler.toml? Or I should create wrangler.toml locally and later create the worker and just change .js code? Im really having trouble understanding this - sorry 😦
Walshy
Walshy•2y ago
You can also just use the dash and add the binding within the dash too In which case, you don't need to worry about a wrangler.toml
szef0
szef0OP•2y ago
Ok, where should I add the bindings?
Walshy
Walshy•2y ago
In the Workers dashboard, select the Worker then Settings -> Variables Scroll down and find R2, you can bind it there
szef0
szef0OP•2y ago
Thank you, will try doing it this way

Did you find this page helpful?