title: blueimp / jQuery-File-Upload template upload not working in zend framework 2
body: <p>I am trying to get blueimp / jQuery-File-Upload working with zend framework 2.0.</p>
  
  <p>When I put the form and ,  in the layout.phtml of in my view script (index.phtml), everything works!
  When I create my form with the zend framework (Zend\Form\Form), the form show like it should but the template upload doesn't show anymore. </p>
  
  <p>Can anybody help me? I tried to copy paste the script on the view, in the layout, .. doesn't work..</p>
  
  <p>This is the content of my view script index.phtml</p>
  
  <pre><code>&lt;div class="container center_piece place_need"&gt;
  &lt;!-- The file upload form used as target for the file upload widget --&gt;
  &lt;form id="fileupload" action="//jquery-file-upload.appspot.com/" method="POST" enctype="multipart/form-data"&gt;
      &lt;!-- Redirect browsers with JavaScript disabled to the origin page --&gt;
      &lt;noscript&gt;&lt;input type="hidden" name="redirect" value="http://blueimp.github.io/jQuery-File-Upload/"&gt;&lt;/noscript&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&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="glyphicon glyphicon-plus"&gt;&lt;/i&gt;
                  &lt;span&gt;Add files...&lt;/span&gt;
                  &lt;input type="file" name="files[]" multiple&gt;
              &lt;/span&gt;
              &lt;button type="submit" class="btn btn-primary start"&gt;
                  &lt;i class="glyphicon glyphicon-upload"&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="glyphicon glyphicon-ban-circle"&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="glyphicon glyphicon-trash"&gt;&lt;/i&gt;
                  &lt;span&gt;Delete&lt;/span&gt;
              &lt;/button&gt;
              &lt;input type="checkbox" class="toggle"&gt;
              &lt;!-- The global file processing state --&gt;
              &lt;span class="fileupload-process"&gt;&lt;/span&gt;
          &lt;/div&gt;
          &lt;!-- The global progress state --&gt;
          &lt;div class="col-lg-5 fileupload-progress fade"&gt;
              &lt;!-- The global progress bar --&gt;
              &lt;div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100"&gt;
                  &lt;div class="progress-bar progress-bar-success" style="width:0%;"&gt;&lt;/div&gt;
              &lt;/div&gt;
              &lt;!-- The extended global progress state --&gt;
              &lt;div class="progress-extended"&gt;&amp;nbsp;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;!-- The table listing the files available for upload/download --&gt;
      &lt;table role="presentation" class="table table-striped"&gt;&lt;tbody class="files"&gt;&lt;/tbody&gt;&lt;/table&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  &lt;!-- Content --&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&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"&gt;&lt;/strong&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;p class="size"&gt;Processing...&lt;/p&gt;
          &lt;div class="progress"&gt;&lt;/div&gt;
      &lt;/td&gt;
      &lt;td&gt;
          {% if (!i &amp;&amp; !o.options.autoUpload) { %}
              &lt;button class="start" disabled&gt;Start&lt;/button&gt;
          {% } %}
          {% if (!i) { %}
              &lt;button class="cancel"&gt;Cancel&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;
  {% for (var i=0, file; file=o.files[i]; i++) { %}
  &lt;tr class="template-download fade"&gt;
      &lt;td&gt;
          &lt;span class="preview"&gt;
              {% if (file.thumbnailUrl) { %}
                  &lt;a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery&gt;&lt;img src="{%=file.thumbnailUrl%}"&gt;&lt;/a&gt;
              {% } %}
          &lt;/span&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;p class="name"&gt;
              &lt;a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}&gt;{%=file.name%}&lt;/a&gt;
          &lt;/p&gt;
          {% if (file.error) { %}
              &lt;div&gt;&lt;span class="error"&gt;Error&lt;/span&gt; {%=file.error%}&lt;/div&gt;
          {% } %}
      &lt;/td&gt;
      &lt;td&gt;
          &lt;span class="size"&gt;{%=o.formatFileSize(file.size)%}&lt;/span&gt;
      &lt;/td&gt;
      &lt;td&gt;
          &lt;button class="delete" data-type="{%=file.deleteType%}" data-url="     {%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}&gt;Delete&lt;/button&gt;
          &lt;input type="checkbox" name="delete" value="1" class="toggle"&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  {% } %}
  &lt;/script&gt;
  </code></pre>