title: How to disable Dropzone.js after choosing file?
body: <p>In my dropzone I first choose file to save, and then click save button to save it. So, my questuion is: how can I disable dropzone area after choosing file? I've tried like this</p>
  
  <pre><code>accept: function (file, done) {
          if (file.type != "image/jpeg" &amp;&amp; file.type != "image/png" &amp;&amp; file.type != "image/gif") {
              $('.file-row').find('img').attr('src', '/../Content/images/decline.png');
              $('.file-row').find('img').attr('class', 'error-img');
              done("Error! Files of this type are not accepted");
           }
          else {
              $('.file-row').find('img').attr('src', '/../Content/images/accept.png');
              $('.file-row').find('img').attr('class', 'accept-img');
              done();
              logoDropzone.disable();
          }
      }
  </code></pre>
  
  <p>But this code don't allow me to upload file, "Upload canceled" error pops-up. What can I do?</p>