Allows to upload files to a Cloudflare R2 bucket (R2 implements the S3 API).

  • Parameters

    Returns {
        delete: (
            ...param: [string],
        ) => Promise<{ details?: string[]; summary: string }>;
        info: {
            account_id: string;
            bucket_name: string;
            bucket_prefix: string;
            endpoint: string;
            ignore_filename: boolean;
            name: string;
            public_base_url: string;
        };
        upload: (
            ...param: [{ body: any; contentType: string; filename: string }],
        ) => Promise<{ details?: string[]; summary: string; url: string }>;
    }