Learn how to add a feature to a Next.js app that allows users to upload files to Amazon S3 using presigned URLs, and save references to these files in a Postgres database. The guide covers creating a Neon project, setting up an S3 bucket, creating IAM user access keys, and setting up a Next.js application with necessary API routes to handle file uploads and database operations.

6m read timeFrom neon.tech
Post cover image
Table of contents
StepsCreate a Neon projectCreate an Amazon S3 BucketCreate access keys for IAM users (in AWS)Create a new Next.js applicationCreate a Presigned URL with Amazon S3 SDKSave Reference to S3 objects in PostgresUpload to Presigned URL with in-browser JavaScriptRun the appNeed help?
1 Comment

Sort: