Skip to content

Commit 4526bf2

Browse files
committed
Badges
1 parent 6d54aae commit 4526bf2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,44 @@
11
# Next.js S3 Uploader
22

33
![Next.js S3 File Uploader](Next.js-S3-Uploader.png)
4+
![npm](https://img.shields.io/npm/dm/next-s3-uploader)
5+
![GitHub](https://img.shields.io/github/license/abhay-ramesh/next-s3-uploader)
6+
<!-- ![GitHub last commit](https://img.shields.io/github/last-commit/abhay-ramesh/next-s3-uploader) -->
7+
<!-- ![GitHub stars](https://img.shields.io/github/stars/abhay-ramesh/next-s3-uploader) -->
48

59
**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.
610

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+
742
## Features
843

944
- **Easy Integration**: Seamlessly integrate file upload functionality into your Next.js applications.

0 commit comments

Comments
 (0)