A simple way to upload files to S3 from a Next.js app directory (aws s3, minio, or any s3 compatible service)
npm install next-s3-uploader!npm
!npm
!GitHub
!example workflow
Next S3 Uploader is a utility package for handling file uploads to Amazon S3 or compatible services like MinIO in a Next.js application. It simplifies the process of integrating secure and scalable cloud storage for your Next.js projects.
- Easy Integration: Seamlessly integrate file upload functionality into your Next.js applications.
- Custom Hook: Provides a custom hook, useS3FileUpload, to manage file uploads and track progress.
- Pre-Signed URLs: Generates pre-signed URLs for secure file uploads directly to Amazon S3 or compatible services.
- Estimate Time Left: Calculates and displays estimated time left for ongoing file uploads.
- Configurable: Supports flexible configuration for both S3 and MinIO services.
> Warning: This package is currently in beta and is not recommended for production use and currently only supports uploading files to public buckets.
Install the package using your preferred package manager:
``bash`Using npm
npm install next-s3-uploader
`bash`Using yarn
yarn add next-s3-uploader
`bash``Using pnpm
pnpm add next-s3-uploader
For full documentation, please visit next-s3-uploader.abhayramesh.com.