title: can't upload multiple files with dropzone
body: <p>I'm using the dropzone.js library but it's not working.</p>
  
  <p>In the upload script I count the files to see if it works:</p>
  
  <pre><code>$file_count = count($_FILES['file']['name']);
  echo $file_count;
  </code></pre>
  
  <p>But it only prints 1 all the time (I tried uploading 2+).</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;form id="propForm" class="" name="" action="upload.php" method="POST" enctype="multipart/form-data"&gt;
      &lt;div class="option img"&gt;
          &lt;h4&gt;Imagenes (m&amp;#225;ximo 6):&lt;/h4&gt;
          &lt;div id="dropzone" class="dropzone"&gt;
          // hidden input is appended here
          &lt;/div&gt;
      &lt;/div&gt;
      // more inputs
      &lt;input value="Subir" type="submit" name="submitIT"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Dropzone options:</p>
  
  <pre><code>$('div#dropzone').dropzone({
      url: 'upload.php',
      paramName: "file[]", // The array is initialized here but it's not working
      acceptedFiles: 'image/*',
      addRemoveLinks: true,
      parallelUploads: 6,
      maxFilesize: 6,
      maxFiles: 6,
      autoDiscover: false,
      autoProcessQueue: false,
      uploadMultiple: true,
      hiddenInputContainer: '#dropzone',
  
      init: function () {
          thisDropzone = this;
          thisDropzone.on("maxfilesexceeded", function(file) { thisDropzone.removeFile(file); });
          $("input[type=submit]").click(function(e){ 
              e.preventDefault();
              thisDropzone.processQueue();
          });
          this.on("successmultiple", function(files, response) {
              alert('works');
              $("form#propForm").submit();
          });
      }
  });
  </code></pre>
  
  <p>Upload.php output:</p>
  
  <pre><code>1  // output for echo $file_count;
  Notice: Uninitialized string offset: 0 // $filen = $_FILES['file']['name'][$i]; (inside a for)
  </code></pre>
  
  <p>EDIT: It was working, just that the files are uploaded first than the form, so I was getting 1 and the notice.</p>