MarwanShehata / drag-drop-web-api

File Upload & Image Preview Playground

Home Page:https://codepen.io/MarwanShehata/pen/RwOjKaw

Repository from Github https://github.comMarwanShehata/drag-drop-web-apiRepository from Github https://github.comMarwanShehata/drag-drop-web-api

File Upload & Image Preview Playground

This is a simple playground for file upload and image preview using HTML, CSS, and JavaScript. It allows you to drag and drop files into a designated area and displays a preview of the uploaded images.

Features

  • Accepts only jpg, svg, png files
  • Displays a preview of the uploaded images
  • Provides a drag and drop area for file upload

Getting Started

To get a local copy up and running, follow these simple steps:

  1. Clone the repository
git clone https://github.com/MarwanShehata/drag-drop-web-api.git
  1. Navigate to the project directory
cd drag-drop-web-api
npm install
npm install vite@latest
  1. Open the index.html file in your web browser

Built With

  • HTML
  • CSS
  • JavaScript

Live Demo

Live Demo Link

Usage

  1. Drag and drop your files into the designated area
  2. The uploaded images will be displayed in a list below the upload area.

Acknowledgments

  • Todd Motto

About

File Upload & Image Preview Playground

https://codepen.io/MarwanShehata/pen/RwOjKaw

License:MIT License


Languages

Language:CSS 46.3%Language:JavaScript 38.8%Language:HTML 14.9%