Steve posted this script to make it easy to upload and share files using Cloudflare R2. No need for dropbox, OneDrive, iCloud, etc. Just a simple command and you're ready.

To use it, I created an R2 storage, named it tmp, and connected it to tmp.vrypan.net. I also added a rule to delete any files 120 days after they are uploaded.

domain setup
Domain Setup

lifecyle setup
Lifecycle Setup

Now, I can do something like this to upload a file (the script itself in this case)...

~/bin/upload-r2.sh ~/bin/upload-r2.sh
✓ Upload successful!
https://tmp.vrypan.net/upload-r2.sh

... and you can get it from https://tmp.vrypan.net/upload-r2.sh