title: Having problem with uploading multiple files in one request using dropzone
body: <p>Am trying to update user image database column using dropzone plugin in one request but when i set <strong>uploadMultiple</strong> to true is not working no image move to folder neither database. But when i set it to false only last image name move to user image column but all images move to folder. </p>
  
  <p>Thanks in advance</p>
  
  <p>Here is my code</p>
  
  <pre><code> Dropzone.options.mydropzone =
    {
        autoProcessQueue: false,
       addRemoveLinks: true,
        dictMaxFilesExceeded: "Maximum upload limit reached",
         dictInvalidFileType: "upload only JPG/PNG/JPEG/GIF/BMP",
      acceptedFiles: '.png,.jpg,.jpeg,.gif,.bmp',
          parallelUploads: 10,
            // uploadMultiple: true,
       init: function ()
      {
        var submitButton = document.querySelector('#letupload');
         myDropzone = this;
  
  
          submitButton.addEventListener("click", function(){
             myDropzone.processQueue();
          });
  
  
         this.on("complete", function(){
        if (this.getQueuedFiles().length == 0 &amp;&amp; this.getUploadingFiles().length == 0) 
        {
          var _this = this;
          _this.removeAllFiles();
        }
        //console.log(this.getUploadingFiles());
      });
  
      },
  
    };
  
  </code></pre>
  
  <p><strong>Server Side</strong></p>
  
  <pre><code>if (!empty($_FILES)) {
  
    $temp_file = $_FILES['file']['tmp_name'];
    $targetDir = '../../user_images/';
    $filename = rand().$_FILES['file']['name'];
    $targetFile = $targetDir.$filename;
  
  
   if (move_uploaded_file($temp_file, $targetFile)) {
  
        $sql="UPDATE img SET Image='$filename' WHERE User_id = '$memberid' ";//
  if(!$qsql=mysqli_query($con,$sql))
  {
    echo mysqli_error($con);
  }
  
    } 
  
  
  }
  </code></pre>
  
  <p><strong>After follow Mohammed link every images to to destination folder but only last image save into that database Below is my new server side code</strong></p>
  
  <pre><code>if (!empty($_FILES)) {
  
  
  foreach($_FILES['file']['tmp_name'] as $key =&gt; $value) {
          $temp_file = $_FILES['file']['tmp_name'][$key];
          $targetDir = '../../user_images/';
          $filename = rand().$_FILES['file']['name'][$key];
          $targetFile =  $targetDir.$filename;
  
          if (move_uploaded_file($temp_file,$targetFile)) {
           $sql="UPDATE img SET Image='$filename' WHERE User_id = '$memberid' ";//
          if(!$qsql=mysqli_query($con,$sql))
          {
            echo mysqli_error($con);
          }
          }
      }
  
  }
  
  </code></pre>