title: Restrict Dropzone to upload only specific type of files
body: <p>I am uploading files with Dropzone here is my code</p>
  
  <pre><code>&lt;div&gt;
      &lt;form id="mainDiv" class="dropzone needsclick" enctype="multipart/form-data" method="post" action="uploadFiles?type=5" role="form"&gt;
  
          &lt;div class="dz-message needsclick"&gt;
              Drop files here or click to upload.&lt;br /&gt;
              &lt;span class="note needsclick"&gt;(Please upload &lt;strong&gt;PDF, JPG, GIF, PNG, PDF&lt;/strong&gt; files only.)&lt;/span&gt;
          &lt;/div&gt;
  
      &lt;/form&gt;
  &lt;/div&gt;
  
  
  &lt;div&gt;
      &lt;form id="recommendationDiv" class="dropzone needsclick" enctype="multipart/form-data" method="post" action="uploadFiles?type=5" role="form"&gt;
  
          &lt;div class="dz-message needsclick"&gt;
              Drop files here or click to upload.&lt;br /&gt;
              &lt;span class="note needsclick"&gt;(Please upload &lt;strong&gt;PDF, JPG, GIF, PNG, PDF&lt;/strong&gt; files only.)&lt;/span&gt;
          &lt;/div&gt;
  
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Uploading works just fine however i want to restrict the type of upload documents</p>
  
  <pre><code>&lt;script&gt;
  
    Dropzone.options.dropzone = {
          acceptedFiles:'image/*'       
      };
  
  
  &lt;/script&gt;  
  </code></pre>
  
  <p>Accepted files doesnt seem to be working , it just uploades everything.</p>