Skip to content

React + TypeScript file uploader using Uploadcare Blocks, built with Vite and deployed on Vercel.

Notifications You must be signed in to change notification settings

Kunalsahuji/FileUploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uploadcare logo

WebsiteQuick StartDocsBlogDiscordTwitter

React File Uploader with Uploadcare Blocks

Edit react-uploader

This project demonstrates the implementation of a file uploader in a React + TypeScript application using Uploadcare Blocks.


🚀 Live Demo

🔗 Live Application: 👉 https://file-uploader-ojyp.vercel.app/form

👨‍💻 About This Implementation

This repository is a custom implementation and extension of the official Uploadcare React uploader example, built and configured by Kunal Sahu as part of hands-on learning and real-world integration practice.

The project focuses on:

  • Strict TypeScript configuration
  • Modern React (Vite + ESNext)
  • Safe handling of Uploadcare file events
  • Clean UI previews using Uploadcare CDN transformations

🛠 Tech Stack

  • React 18
  • TypeScript (strict mode)
  • Vite
  • Uploadcare React Uploader
  • CSS Modules

🚀 Run this project locally

# Clone the repository
git clone <your-repo-url>

# Navigate to the project directory
cd <project-folder>

# Install dependencies
npm install

# Start development server
npm run dev

👨‍💻 About This Implementation

This repository is a custom implementation and extension of the official Uploadcare React uploader example, built and configured by Kunal Sahu as part of hands-on learning and real-world integration practice.

The project focuses on: - Strict TypeScript configuration - Modern React (Vite + ESNext) - Safe handling of Uploadcare file events - Clean UI previews using Uploadcare CDN transformations


🛠 Tech Stack

  • React 18
  • TypeScript (strict mode)
  • Vite
  • Uploadcare React Uploader
  • CSS Modules

🚀 Run this project locally

# Clone the repository
git clone <your-repo-url>

# Navigate to the project directory
cd <project-folder>

# Install dependencies
npm install

# Start development server
npm run dev

📦 Installation

Install Uploadcare React Uploader:

npm install @uploadcare/react-uploader

📖 Read more about installation in the official documentation.


⚙️ Configuration

Please refer to the official Uploadcare File Uploader documentation:

👉 https://uploadcare.com/docs/file-uploader/


🧩 Integration Notes

Uploadcare Blocks are Web Components, not native React components.

To keep the React architecture clean:

  • Uploadcare Blocks are encapsulated inside dedicated components
  • React interacts with them only via typed events and props
  • No direct DOM manipulation outside components

🛠 Features

add FileUploader component and integrate with form views

  • Implemented FileUploader component for photo uploads using Uploadcare.
  • Created Layout component for consistent navigation structure.
  • Developed FormView to handle blog post submissions with photo uploads.
  • Added MinimalView and RegularView for different upload experiences.
  • Introduced styling for components using SCSS and CSS modules.
  • Established theme toggling functionality between light and dark modes.
  • Included mock data for initial testing of the form submission.
  • Configured TypeScript settings and Vite for project setup.

🎨 Styling

You can style Uploadcare blocks using:

  • CSS variables
  • Class overrides
  • Full custom styles passed directly to uploader blocks

📖 https://uploadcare.com/docs/file-uploader/styling/


👤 Author

Kunal Sahu
Full Stack Developer (MERN-Stack Developer)

🔗 Connect with Me

📦 GitHub: github.com/Kunalsahuji
🔗 LinkedIn: linkedin.com/in/kunal-sahu-7688ba1b0
📌 Notion: Watch my content
📧 Email: ksahu0103@gmail.com


🤝 Contribution & Credits

  • Original uploader blocks by Uploadcare
  • This implementation is for learning and demonstration purposes
  • Contributions and suggestions are welcome

⭐ If you find this useful, feel free to star the repository!

About

React + TypeScript file uploader using Uploadcare Blocks, built with Vite and deployed on Vercel.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published