Cloudflare R2 guide
Make an account for Cloudflare.
Ensure that your domain is added onto Cloudflare and verified with NS (Name Server) records on your domain registrar. Your domain has to be hosted through Cloudflare otherwise this won't work at all, and you will be unable to use R2 / Cloudflare CDN to host your images.
While R2 is not free, it does have a generous free tier. The full pricing is available to see here.
Domain Accessand select
This will connect your domain to the R2 bucket, and will allow any objects inside of that bucket to be accessible by the selected domain.
Manage R2 API Tokenson the right top side of the dashboard.
Create API token.
R2 Tokentext to edit your API token name.
Editfor your token.
Create API Token.
Access Key IDand
Secret access keyfor the next step.
Amazon S3and select it.
Access Key ID&
Secret access keyfill in the two top boxes.
Endpoint:" and type
<ACCOUNT_ID>.r2.cloudflarestorage.com. (you can find your account ID on the right hand side of your Dashboard)
Bucket name:with the Bucket Name you picked on Cloudflare.
Upload path:to your preference.
Use custom domain:to the domain that you selected in the first step.
Image uploader:and change it to
File Uploader -> Amazon S3.
Now you are ready to use Cloudflare R2 in ShareX!