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?
1 Reply
potato
potatoOP16mo ago
nvm found out the images on github is very horrible quality. am just gonna get the images my self and put into bucket
Want results from more Discord servers?
Add your server