Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

How to upload files using jQuery Dropzone Plugin ?

  • Difficulty Level : Medium
  • Last Updated : 29 Jun, 2020

jQuery has many types of file upload plugins that are used to upload various types of files and can be processed further at the backend. Usually, PHP is used widely as backend language with ajax call. We also have dynamic jQuery plugins where we can drag and drop the files.

Some of the file uploader plugins are:

  • Fine-Uploader
  • JQuery File upload
  • Uploadify
  • Plupload
  • Formstone upload
  • Dropzone

Many more are available.

CDN Link:

<script src=”” integrity=”sha256-fegGeSK7Ez4lvniVEiz1nKMx9pYtlLwPNRPf6uc8d+8=” crossorigin=”anonymous”>

Example: The following example is implemented using Dropzone plugin and CDN libraries required for the code.

<!DOCTYPE html>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content=
        initial-scale=1, shrink-to-fit=no">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href=
    <!-- jQuery first, then Popper.js, 
        then Bootstrap JS -->
    <script src=
    <script src=
    <script src=
        body {
            padding: 2%;
    <form action="/file-upload" class="dropzone">
        <div class="fallback">
            <input name="file" type="file" multiple />


Conclusion: In the above example, we can drag many documents at one go. We can perform the same operation by only JavaScript code and we can also put constraints on the size and type of the file also.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!