diff --git a/solutions/aws-s3-image-upload/app/api/upload/route.ts b/solutions/aws-s3-image-upload/app/api/upload/route.ts index 34f684f9e7..635fa33919 100644 --- a/solutions/aws-s3-image-upload/app/api/upload/route.ts +++ b/solutions/aws-s3-image-upload/app/api/upload/route.ts @@ -3,7 +3,7 @@ import { S3Client } from '@aws-sdk/client-s3' import { v4 as uuidv4 } from 'uuid' export async function POST(request: Request) { - const { filename, contentType } = await request.json() + const { contentType } = await request.json() try { const client = new S3Client({ region: process.env.AWS_REGION }) diff --git a/solutions/aws-s3-image-upload/app/page.tsx b/solutions/aws-s3-image-upload/app/page.tsx index 76ceb88449..6335e70e30 100644 --- a/solutions/aws-s3-image-upload/app/page.tsx +++ b/solutions/aws-s3-image-upload/app/page.tsx @@ -23,7 +23,7 @@ export default function Page() { headers: { 'Content-Type': 'application/json', }, - body: JSON.stringify({ filename: file.name, contentType: file.type }), + body: JSON.stringify({ contentType: file.type }), } )