|
1 | 1 | # Next.js S3 Uploader
|
2 | 2 |
|
3 | 3 | 
|
| 4 | + |
| 5 | + |
| 6 | +<!--  --> |
| 7 | +<!--  --> |
4 | 8 |
|
5 | 9 | **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.
|
6 | 10 |
|
| 11 | +## Table of Contents |
| 12 | + |
| 13 | +- [Next.js S3 Uploader](#nextjs-s3-uploader) |
| 14 | + - [Table of Contents](#table-of-contents) |
| 15 | + - [Features](#features) |
| 16 | + - [Installation](#installation) |
| 17 | + - [Usage](#usage) |
| 18 | + - [Frontend (Nextjs App Directory)](#frontend-nextjs-app-directory) |
| 19 | + - [API Route](#api-route) |
| 20 | + - [API](#api) |
| 21 | + - [`useS3FileUpload` Hook Options](#uses3fileupload-hook-options) |
| 22 | + - [`uploadFiles` Function Options](#uploadfiles-function-options) |
| 23 | + - [`uploadedFiles` Array Properties](#uploadedfiles-array-properties) |
| 24 | + - [`reset` Function](#reset-function) |
| 25 | + - [`createS3Client(config)`](#creates3clientconfig) |
| 26 | + - [`generatePresignedUrls(s3Client, keys, bucket, prefix?)`](#generatepresignedurlss3client-keys-bucket-prefix) |
| 27 | + - [Example Usage](#example-usage) |
| 28 | + - [Allow Multiple File Uploads](#allow-multiple-file-uploads) |
| 29 | + - [Limit Number of Uploaded Files](#limit-number-of-uploaded-files) |
| 30 | + - [Set Maximum File Size](#set-maximum-file-size) |
| 31 | + - [Custom Keys](#custom-keys) |
| 32 | + - [Custom API Endpoint](#custom-api-endpoint) |
| 33 | + - [AWS S3 Client](#aws-s3-client) |
| 34 | + - [Non-AWS S3 Compatible Client (MinIO/Non-AWS)](#non-aws-s3-compatible-client-minionon-aws) |
| 35 | + - [Basic File Upload](#basic-file-upload) |
| 36 | + - [Authenticated Upload](#authenticated-upload) |
| 37 | + - [Project-Specific Upload](#project-specific-upload) |
| 38 | + - [Organization/Company File Storage](#organizationcompany-file-storage) |
| 39 | + - [Contributing](#contributing) |
| 40 | + - [License](#license) |
| 41 | + |
7 | 42 | ## Features
|
8 | 43 |
|
9 | 44 | - **Easy Integration**: Seamlessly integrate file upload functionality into your Next.js applications.
|
|
0 commit comments