Dropzone

Dropzone.js is one of the most popular drag and drop JavaScript libraries.


Initializing

The demo pages already include the following code. These steps are only necessary if you are building a page from scratch. Remove these references if you are not using this plugin to improve page load times.

Include the library in your page

Copy the script tag below and paste in the foot of your page. Add this where you see the other library scripts. This line should be inserted after jquery.min.js and before custom.js.

1. Link the CSS right before the head closing tag of your page, where you see the other library scripts. This line should be inserted before main.css.

              
<!-- Dropzone Stylesheet -->
<link rel="stylesheet" href="assets/css/dropzone.min.css"/>
                
              

2. Link the js before the body closing tag of your page, where you see the other library scripts. This line should be inserted before custom.js.

            
<!-- Dropzone Js -->
<script type="text/javascript" src="assets/js/dropzone.min.js"></script>
            
          

Alternatively you may wish to load this resource from a CDN to potentially improve page load times.

Basic Usage

            
<form action="/file-upload" class="dropzone dropzone-area"> 
</form>
            
            

Consult the Dropzone Documentation for more details.