This is a simple drag and drop file upload plugin. You need to add a CSS and a JavaScript file and it'll be ready to go with your valuable projects.
- Download the repository
git clone https://github.com/muhaiminShihab/drag-and-drop.git
-
Copy the CSS file
/app.css
and paste it on your project -
Copy the JS file
/app.js
and paste it on your project -
Initial the drag and drop package
<div id="drag_and_drop">
<input type="file" name="" id="">
</div>
<script>
msDND('#drag_and_drop');
</script>
- Always initial the drag and drop package with an id.