Helpers
A collection of helper functions and utilities for your project.
better-upload
has some built-in clients for popular S3-compatible storage services, like Cloudflare R2. Suggest a new client by opening an issue.
This returns an instance of an S3 Client from the AWS SDK, just like new S3Client()
, but already configured for Cloudflare R2.
If your created your R2 bucket using a jurisdiction, you can specify it here.
Moves an object from one location to another, within the same bucket. Also known as renaming.
This copies the object to the new location and then deletes the original
object. It can be slow.