This recipe works with any S3-compatible store, including Cloudflare R2 and MinIO. Perform the storage operation with your provider’s client, then record the accepted byte count in OurPay.
Configure a Sum meter whose filter matches object.uploaded and whose aggregation property is metadata.bytes.
Record the size confirmed by the storage provider, not an untrusted client-supplied value.