next-s3-uploader
v0.2.1
Published
A simple way to upload files to S3 from a Next.js app directory (aws s3, minio, or any s3 compatible service)
Downloads
198
Maintainers
Readme
Next.js S3 Uploader
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.
Features
- 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.
Installation
Install the package using your preferred package manager:
# Using npm
npm install next-s3-uploader
# Using yarn
yarn add next-s3-uploader
# Using pnpm
pnpm add next-s3-uploader
Full Documentation
For full documentation, please visit next-s3-uploader.abhayramesh.com.