In this tutorial, We will learn how to add a download link in dropzone js. We will help you to give an example of the dropzone add download link.

Follow some steps:

Step 1:

Create index.php file

<!DOCTYPE html>
  <title>PHP - Dropzone Add Download Button Example</title>
  <script src=""></script>
  <link rel="stylesheet" href="">
  <link href="" rel="stylesheet">
  <script src=""></script>
<div class="container">
  <div class="row">
    <div class="col-md-12">
      <h2>PHP - Dropzone Add Download Button Example</h2>
      <form action="upload.php" enctype="multipart/form-data" class="dropzone" id="image-upload">
        <input type="hidden" name="request" value="add">
          <h3>Upload Multiple Image By Click On Box</h3>
<script type="text/javascript">
    Dropzone.autoDiscover = false;
    var myDropzone = new Dropzone(".dropzone", { 
       maxFilesize: 10,
       acceptedFiles: ".jpeg,.jpg,.png,.gif",
       success: function (file, response) {
        if(response != 0){
           var anchorEl = document.createElement('a');
           anchorEl.innerHTML = "<br>Download File";


Step 2: 

Create upload.php file

$uploadDir = 'upload';
$tmpFile = $_FILES['file']['tmp_name'];
$filename = $uploadDir.'/'.$_FILES['file']['name'];
echo $filename;

Step 3: 

Create upload folder for store images

Finally, You have to run your application..