A file upload component built with Next.js 15 and React 19, designed to simplify the upload process using serverAction
.
- Single File Upload 🗂️: Supports easy single file uploads.
- Multiple File Upload 📁: Effortlessly select and upload multiple files.
- Custom Upload Area 🎨: Customize the style and functionality of the file upload area.
- Custom Upload List Rendering 📝: Flexibly render the list of uploaded files to meet different needs.
- S3 Adapter Capability ☁️: Seamless integration with AWS S3 for easy file storage.
Install via npm or yarn:
npm install nextjs-uploader
# or
yarn add nextjs-uploader
import { Uploader } from 'nextjs-uploader';
const MyComponent = () => {
return (
<Uploader
onUploadComplete={(files) => console.log(files)}
// Other custom properties
/>
);
};
For detailed documentation, please refer to docs.
Contributions are welcome! Please check out the Contributing Guide for more information.
This project is licensed under the MIT License. See the LICENSE file for details.