This repository is an example of a multipart upload to Cloudflare R2 using AWS S3 Rust SDK.
Set environment variables.
R2_ACCOUNT_ID=
R2_ACCESS_ID=
R2_ACCESS_SECRET=
R2_BUCKET_NAME=
R2_REGION=
Launch HTTP server with your environment variables loaded. For example using dotenvx.
$ dotenvx run -- cargo run