Solutionunvalidated

const buffer = Buffer.from(await file.arrayBuffer()); — export async function POST(request: NextRequest, response: NextResponse). Tension: How to pass the buffer and store the image on s3 bucket ??? Outcome: const command = new PutObjectCommand(params);.

750d568c-f0f0-4c4e-b9b3-f3ab1b0b45de

const buffer = Buffer.from(await file.arrayBuffer()); — export async function POST(request: NextRequest, response: NextResponse). Tension: How to pass the buffer and store the image on s3 bucket ??? Outcome: const command = new PutObjectCommand(params);.