file-uploader
file-uploader copied to clipboard
File uploader built with shadcn/ui and react-dropzone.
File Uploader
This is a file uploader component built with shadnc/ui, and react-dropzone. It is bootstrapped with create-t3-app.
Tech Stack
- Framework: Next.js
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Drag and Drop: react-dropzone
- Storage: uploadthing
- Validation: Zod
Features
- [x] Reusable
useFileUploadhook for uploading files withuploadthing - [x] Drag and drop file upload component with progress bar
- [x] React-hook-form integration with
shadnc/uiform components - [x] File dialog demo with adding and removing files from the scrollable list
Running Locally
-
Clone the repository
git clone https://github.com/sadmann7/file-uploader -
Install dependencies using pnpm
pnpm install -
Copy the
.env.exampleto.envand update the variables.cp .env.example .env -
Start the development server
pnpm run dev
How do I deploy this?
Follow the deployment guides for Vercel, Netlify and Docker for more information.
