How to upload png/webp to r2 via worker
I am completely lost on this.
My worker basically uses GitHub's REST API to get contents of file from a repo and upload it to r2. But the content comes encoded in base64. How can I upload the image to r2?
My worker basically uses GitHub's REST API to get contents of file from a repo and upload it to r2. But the content comes encoded in base64. How can I upload the image to r2?