Next.js Discord

Discord Forum

Hello guys, how can i upload aws s3 in next 15?

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
How can I to do this?????

const uploadParams = {
Bucket: process.env.NEXT_AWS_A3_BUCKET_NAME,
Key: file.name,
Body: file,
ContentType: file.type
}

const command = new PutObjectCommand(uploadParams);
await s3.send(command);

0 Replies