title: Multiple files upload - Blueimp jQuery uploader
body: <p>I use a jquery plugin name "blueimp jquery file upload" - <a href="https://github.com/blueimp/jQuery-File-Upload" rel="nofollow">https://github.com/blueimp/jQuery-File-Upload</a>.</p>
  
  <p>I was wondering how can i add dropdown values to the database for each file when uploading multiple files.</p>
  
  <p>I have used the original javascript template for uploading files and i modified it a little. It looks like this.</p>
  
  <pre><code>&lt;script id="template-upload" type="text/x-tmpl"&gt;
      {% for (var i=0, file; file=o.files[i]; i++) { %}
      &lt;form id="#fileupload" action="server/php/" method="POST" enctype="multipart/form-data"&gt;
          &lt;tr class="template-upload fade"&gt;
          &lt;td&gt;
              &lt;span class="preview"&gt;&lt;/span&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;p class="name"&gt;{%=file.name%}&lt;/p&gt;
              &lt;strong class="error text-danger"&gt;&lt;/strong&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;p class="size"&gt;Processing...&lt;/p&gt;
              &lt;div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"&gt;
                  &lt;div class="progress-bar progress-bar-success" style="width:0%;"&gt;/div&gt;
             &lt;/div&gt;
          &lt;/td&gt;
          &lt;td&gt;
              &lt;label class="title"&gt;
              &lt;select name="title[]" &gt;
                  &lt;option value="val1"&gt;val1&lt;/option&gt;
                  &lt;option value="val2"&gt;val2&lt;/option&gt;
              &lt;/select&gt;
              &lt;/label&gt;
              &lt;label class="description"&gt;
                  &lt;span&gt;Description:&lt;/span&gt;&lt;br&gt;
                  &lt;input name="description[]" class="form-control"&gt;
              &lt;/label&gt;
      {% if (!i &amp;&amp; !o.options.autoUpload) { %}
                  &lt;button class="btn btn-primary start upload-file" disabled&gt;
                      &lt;i class="glyphicon glyphicon-upload"&gt;&lt;/i&gt;
                      &lt;span&gt;Start&lt;/span&gt;
                  &lt;/button&gt;
      {% } %}
      {% if (!i) { %}
          &lt;button class="btn btn-warning cancel"&gt;
              &lt;i class="glyphicon glyphicon-ban-circle"&gt;&lt;/i&gt;
              &lt;span&gt;Cancel&lt;/span&gt;
          &lt;/button&gt;
      {% } %}
          &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/form&gt;
      {% } %}
  &lt;/script&gt;
  </code></pre>
  
  <p>I am trying to make it to work. I spend a lot of time today but don't want to gave up. If someone had expericne with this, please help me, give me direction.</p>
  
  <p>i have found this but i cant figure it out how to make it work
  <a href="https://github.com/blueimp/jQuery-File-Upload/wiki/How-to-submit-additional-Form-Data" rel="nofollow">https://github.com/blueimp/jQuery-File-Upload/wiki/How-to-submit-additional-Form-Data</a></p>
  
  <p>Thanks</p>
  
  <p>Best Regards,
  Darko</p>