{"repo":"abhay-ramesh/next-s3-uploader","free":true,"listed":false,"github":"https://github.com/abhay-ramesh/next-s3-uploader","clone":"git clone https://github.com/abhay-ramesh/next-s3-uploader.git","description":"A simple way to upload files to S3 from a Next.js app directory (aws s3, minio, or any s3 compatible service)","language":"TypeScript","stars":13,"topics":["file-upload","nextjs","s3"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"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: Usage Prerequisites AWS S3 or compatible service (MinIO, etc.) with a public bucket. To be set with policy: --- Or --- AWS S3 or compatible service (MinIO, etc.) with a private bucket. To be set with policy: In generatePresignedUrls function, set privateBucket to true . Frontend (Nextjs App Directory) Import the useS3FileUpload hook and use it in your Nextjs component: API Route Use the createS3Client and generatePresignedUrls functions to create an API route for handling pre-signed URLs: API The package provides th","default_branch":null,"files":null,"tree":[],"storefront":"/r/abhay-ramesh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/abhay-ramesh/next-s3-uploader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}