How to upload files using jQuery Dropzone Plugin ?

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

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.