title: Dropzone.js inside another PHP form
body: <p>Despite there's some documentation, there are very few real examples on how to use it.</p>
  
  <p>For example: I want to include Dropzone inside my existing form that adds a product with title, description and photos. </p>
  
  <p>Dropzone itself works as a form. It would be nice to use Dropzone just to preview and validate image type and size, but let the main form submit all the data. How should I do it?</p>
  
  <p>This would be the idea (however, I shouldn't include a form inside a form):</p>
  
  <pre><code>&lt;form action="products/add.php" method="POST" class="form-horizontal" role="form"&gt;
      &lt;div class="form-group"&gt;
        &lt;legend&gt;Add product&lt;/legend&gt;
      &lt;/div&gt;
  
      &lt;label for="title"&gt;Title&lt;/label&gt;
      &lt;input type="text" name="title" id="input-title" class="form-control"&gt;
  
      &lt;label for="description"&gt;Description&lt;/label&gt;
      &lt;input type="text" name="description" id="input-description" class="form-control"&gt;
  
      &lt;form action="/file-upload" class="dropzone" id&gt;
        &lt;div class="dropzone-previews"&gt;&lt;/div&gt;
      &lt;/form&gt;
  
      &lt;div class="form-group"&gt;
        &lt;div class="col-sm-10 col-sm-offset-2"&gt;
          &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>