/next-s3

Next.js AWS S3 image upload simple example (with presigned url)

Primary LanguageJavaScript

Next.js 14 - AWS S3 Image Upload Example

This is a Next.js project bootstrapped with create-next-app.

Create .env.local file

AWS_REGION=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_S3_BUCKET_NAME=
AWS_S3_ACL=
AWS_S3_SIGNED_URL_EXPIRE_TIME=

Getting Started

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.