title: Dropzone JS only uploading one file
body: <p>I am using DropzoneJS in one of my projects. I am using laravel to process the backend for file upload. I used a div in my form and add the dropzone class to it.</p>
  
  <pre><code>&lt;div class="col-md-12 dropzone file_upload"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>it works fine but only one file is being uploaded. I want it to upload multiple files simultaneously.</p>
  
  <p>I already set the <code>parallelUploads</code> option in my dropzone configuration to <code>10</code> and the <code>maxFiles</code> option to <code>10</code> also.</p>
  
  <p>here is my code for the dropzone configuration:</p>
  
  <pre><code>$("div.file_upload").dropzone({
      url: upload,
      headers: {
          'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
      },
      autoProcessQueue: true,
      addRemoveLinks: true,
      uploadMultiple: true,
      params: {
        "model_id": 1,
        "user_id" : 2
      },
      maxFiles: 10,
      parallelUploads: 10,
  
  
  });
  </code></pre>
  
  <p>below is my code for the backend</p>
  
  <p><strong>Controller.php</strong></p>
  
  <pre><code>public function uploadPhoto(Request $request){
  
      foreach ($request-&gt;file('file') as $file) {
  
          $filename = uniqid().'.'.$file-&gt;getClientOriginalExtension();
          $file-&gt;move('images/booking', $filename);
  
          //save details to db
          $photo= new InspectionPhotos();
          $photo-&gt;inspection_id = $request['inspection_id'];
          $photo-&gt;product_id = $request['product_id'];
          $photo-&gt;photo_path = $filename;
          if($photo-&gt;save()){
              return response()-&gt;json([
              'message' =&gt; 'OK'
              ]);
          }
  
      }
  
  }
  </code></pre>