I have reached this part, and don't know how to upload files to r2 using rclone
I have reached this part, and don't know how to upload files to r2 using rclone

When an input begins receiving the live stream, a new video with HLS and DASH URLs is automatically created as long as the mode property for the input is set to automatic.
automatic to be able to watch it using the Stream player.
net::ERR_CONNECTION_RESET It is a next.js project. This is my api endpoint code to create a unique url.import { NextRequest, NextResponse } from "next/server";
export async function POST(request: NextRequest) {
try {
const { CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN } = process.env;
const endpoint = https://api.cloudflare.com/client/v4/accounts/${CLOUDFLARE_ACCOUNT_ID}/stream?direct_user=true`;bearer ${CLOUDFLARE_API_TOKEN},automaticnet::ERR_CONNECTION_RESETimport { NextRequest, NextResponse } from "next/server";
export async function POST(request: NextRequest) {
try {
const { CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_API_TOKEN } = process.env;
const endpoint = bearer ${CLOUDFLARE_API_TOKEN}{
"result": {
"notification_url": "https://snip/api/v1/media/webhook/stream",
"notificationUrl": "https://snip/api/v1/media/webhook/stream",
"modified": "2024-03-18T22:13:16.11357Z",
"secret": "snip"
},
"success": true,
"errors": [],
"messages": []
}return $this->request('post', 'live_inputs', [
'meta' => ['name' => $name],
'recording' => [
// It seems that recording needs to be enabled in order to play
// the stream as an iframe.
'mode' => 'automatic',
'timeoutSeconds' => 1800,
],
'deleteRecordingAfterDays' => 30,
])['result'];