JQuery-File-Upload Button dependencies
<p>I am using this <a href="https://github.com/tors/jquery-fileupload-rails-paperclip-example" rel="nofollow">application example</a> and try to model it to fit my needs.</p>

<p>I am modelling your index.html.erb to fit my needs.
I want to get rid of "start" button in order to prevent single-file upload (I dont want it), but it seems that "start upload"(multiple upload)-button is on "start" button dependent and I could not find how to modify the script in order to get rid of "start"-buttom but to keep the functionality of a "start upload" -button.</p>

<p>Can you give me some hints how to get rid of those dependencies?</p>

<p>Hier is the short code cut-off:
I have marked the lines where "start upload" and "start" buttons are situated with !!!.</p>

<pre><code>&lt;div class="container"&gt;
      &lt;h2&gt;Upload file&lt;/h2&gt;
      &lt;%= form_for Upload.new, :html =&gt; { :multipart =&gt; true, :id =&gt; "fileupload" } do |f| %&gt;
        &lt;!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload --&gt;
        &lt;div class="row fileupload-buttonbar"&gt;
          &lt;div class="span7"&gt;
            &lt;!-- The fileinput-button span is used to style the file input field as button --&gt;
            &lt;span class="btn btn-success fileinput-button"&gt;
              &lt;i class="icon-plus icon-white"&gt;&lt;/i&gt;
              &lt;span&gt;Add files...&lt;/span&gt;
              &lt;%= f.file_field :upload %&gt;
            &lt;/span&gt;
            &lt;button type="submit" class="btn btn-primary start"&gt;
              &lt;i class="icon-upload icon-white"&gt;&lt;/i&gt;
 !!!!            &lt;span&gt;Start upload&lt;/span&gt;
            &lt;/button&gt;
            &lt;button type="reset" class="btn btn-warning cancel"&gt;
              &lt;i class="icon-ban-circle icon-white"&gt;&lt;/i&gt;
              &lt;span&gt;Cancel upload&lt;/span&gt;
            &lt;/button&gt;
            &lt;button type="button" class="btn btn-danger delete"&gt;
              &lt;i class="icon-trash icon-white"&gt;&lt;/i&gt;
              &lt;span&gt;Delete&lt;/span&gt;
            &lt;/button&gt;
            &lt;input type="checkbox" class="toggle"&gt;
          &lt;/div&gt;
          &lt;div class="span5"&gt;
            &lt;!-- The global progress bar --&gt;
            &lt;div class="progress progress-success progress-striped active fade"&gt;
              &lt;div class="bar" style="width:0%;"&gt;&lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;!-- The loading indicator is shown during image processing --&gt;
        &lt;div class="fileupload-loading"&gt;&lt;/div&gt;
        &lt;br&gt;
        &lt;!-- The table listing the files available for upload/download --&gt;
        &lt;table class="table table-striped"&gt;&lt;tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"&gt;&lt;/tbody&gt;
        &lt;/table&gt;
      &lt;% end %&gt;

    &lt;/div&gt;


    &lt;!-- The template to display files available for upload --&gt;
    &lt;script id="template-upload" type="text/x-tmpl"&gt;
      {% for (var i=0, file; file=o.files[i]; i++) { %}
      &lt;tr class="template-upload fade"&gt;
        &lt;td class="preview"&gt;&lt;span class="fade"&gt;&lt;/span&gt;&lt;/td&gt;
        &lt;td class="name"&gt;&lt;span&gt;{%=file.name%}&lt;/span&gt;&lt;/td&gt;
        &lt;td class="size"&gt;&lt;span&gt;{%=o.formatFileSize(file.size)%}&lt;/span&gt;&lt;/td&gt;
        {% if (file.error) { %}
        &lt;td class="error" colspan="2"&gt;&lt;span class="label label-important"&gt;{%=locale.fileupload.error%}&lt;/span&gt; {%=locale.fileupload.errors[file.error] || file.error%}&lt;/td&gt;
        {% } else if (o.files.valid &amp;&amp; !i) { %}
        &lt;td&gt;
          &lt;div class="progress progress-success progress-striped active"&gt;&lt;div class="bar" style="width:0%;"&gt;&lt;/div&gt;&lt;/div&gt;
        &lt;/td&gt;
   !!!     &lt;td class="start"&gt;{% if (!o.options.autoUpload) { %}
          &lt;button class="btn btn-primary"&gt;
            &lt;i class="icon-upload icon-white"&gt;&lt;/i&gt;
            &lt;span&gt;{%=locale.fileupload.start%}&lt;/span&gt;
          &lt;/button&gt;
          {% } %}&lt;/td&gt;
        {% } else { %}
        &lt;td colspan="2"&gt;&lt;/td&gt;
        {% } %}
        &lt;td class="cancel"&gt;{% if (!i) { %}
          &lt;button class="btn btn-warning"&gt;
            &lt;i class="icon-ban-circle icon-white"&gt;&lt;/i&gt;
            &lt;span&gt;{%=locale.fileupload.cancel%}&lt;/span&gt;
          &lt;/button&gt;
          {% } %}&lt;/td&gt;
      &lt;/tr&gt;
      {% } %}
    &lt;/script&gt;
    &lt;!-- The template to display files available for download --&gt;
    &lt;script id="template-download" type="text/x-tmpl"&gt;&lt;/script&gt;

    &lt;script type="text/javascript" charset="utf-8"&gt;
      $(function () {
          // Initialize the jQuery File Upload widget:
          $('#fileupload').fileupload();
          //
          // Load existing files:
          $.getJSON($('#fileupload').prop('action'), function (files) {
            var fu = $('#fileupload').data('fileupload'),
              template;
            fu._adjustMaxNumberOfFiles(-files.length);
            console.log(files);
            template = fu._renderDownload(files)
              .appendTo($('#fileupload .files'));
            // Force reflow:
            fu._reflow = fu._transition &amp;&amp; template.length &amp;&amp;
              template[0].offsetWidth;
            template.addClass('in');
            $('#loading').remove();
          });

      });
    &lt;/script&gt; 
</code></pre>

<p>Thank you.
Cheers, Katja</p>
