Overview

Configure and use AWS S3 for file storage in Plainform.

Plainform Dev uses AWS S3 buckets to handle file storage, allowing you to upload files (e.g., images, documents) and retrieve their publicly accessible URLs for use in your application.

Configured in the lib/amazon folder and validated by t3-env, this setup ensures secure, scalable storage with minimal effort, integrating seamlessly with your Next.js app and Supabase database via Prisma for metadata management.

  • File Uploads: Upload files to S3 buckets (e.g., user avatars, documents) via the AWS SDK in lib/amazon.
  • URL Generation: Generate public URLs for uploaded files to display or link in your app.
  • Secure Storage: Store files securely with AWS IAM credentials and bucket policies.
  • Next.js Integration: Use S3 URLs in components or API routes for seamless frontend/backend integration.
  • Prisma Metadata Management: Store file metadata (e.g., URLs) in your Supabase database via Prisma for data consistency.

These features enable efficient file handling, saving development time while ensuring security and compatibility with your SaaS application.

How is this guide ?

Last updated on