I can upload things to it, but can’t use it for images URLs or anything like that, at least not that I’m aware of. Is there any way to do this?
I’d really just like to target a remote R2 bucket (and D1, etc) while developing locally.
I can upload things to it, but can’t use it for images URLs or anything like that, at least not that I’m aware of. Is there any way to do this?
I’d really just like to target a remote R2 bucket (and D1, etc) while developing locally.
I am looking for the exact same thing. I think it’s just plain unbelievable how there is literally NO insight in the docs on how to do the most basic of things:
Upload an image => Get a URL
I am trying to implement a simple “upload avatar” functionality in my worker and can’t get R2 to spit out a URL that I can store in the DB as “avatar_url” and use in my front-end (and that works in both remote and local environment).
Does anyone know how to do this?
You can’t do it, and yes, it is very annoying and strange that this wasn’t one of the first things they had in Wrangler.
You can also follow the same issue on GitHub: 🚀 Feature Request: Ability to emulate a public R2 bucket when developing locally with Wrangler 3 · Issue #3687 · cloudflare/workers-sdk · GitHub