title: File upload does not return files within bootstrap modal
body: <p>I'm using a bootstrap modal dialog to upload a file. But when the form is submitted the $_FILES array does not contain any files.</p>
  
  <p>here's my php code:</p>
  
  <pre><code>if (isset($_POST['saveButton']))
  {
      $file = $_FILES['fileField']['name'];
  }
  </code></pre>
  
  <p>here's my html code:</p>
  
  <pre><code>&lt;button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal"&gt;
          Launch demo modal
      &lt;/button&gt;
  
      &lt;!-- Modal --&gt;
      &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"&gt;
          &lt;div class="modal-dialog"&gt;
              &lt;div class="modal-content"&gt;
                  &lt;form method="post" id="noteForm" name="noteForm" action="documentAndNotesList.php"&gt;
                      &lt;div class="modal-header"&gt;
                          &lt;button type="button" class="close" data-dismiss="modal"&gt;&lt;span aria-hidden="true"&gt;&amp;times;&lt;/span&gt;&lt;span class="sr-only"&gt;Close&lt;/span&gt;&lt;/button&gt;
                          &lt;h4 class="modal-title" id="myModalLabel"&gt;Modal title&lt;/h4&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-body"&gt;
                          &lt;input type="file"  id="fileField" name="fileField" /&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-footer"&gt;
                          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Cancel&lt;/button&gt;
                          &lt;button type="submit" id="saveButton" name="saveButton" class="btn btn-primary"&gt;Save changes&lt;/button&gt;
                      &lt;/div&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>What am I doing wrong?</p>