title: DropzoneJs success and error callback
body: <p>I'm building an AngularJs app and I'm using a dropzone from DropzoneJs. I need to use the success and error callback because I have to access to the server response. I'm having a problem that if I use the callbacks, the previewTemplate changes... So, can I change the previewTemplate inside the callback?</p>
  
  <p>If I don't use the callbacks here's the result template and the code:</p>
  
  <p><img src="https://i.stack.imgur.com/4w7j0.jpg" alt="no callbakcs success"><img src="https://i.stack.imgur.com/w4z35.jpg" alt="no callbacks error"></p>
  
  <pre><code>var myDropzone = $("#storageDropzone").dropzone({
      url: firstUrl,        
  }); 
  </code></pre>
  
  <p><br>
  If I use the callbacks the "tick" or the "cross" don't show up:</p>
  
  <p><img src="https://i.stack.imgur.com/rjf5A.jpg" alt="with callback success"><img src="https://i.stack.imgur.com/DWU0x.jpg" alt="with callback error"></p>
  
  <pre><code>var myDropzone = $("#storageDropzone").dropzone({
      url: firstUrl,
      error: function (file, response) {
          console.log("Erro");
          console.log(response);
      },
      success: function (file, response) {
          console.log("Sucesso");
          console.log(response);
      },
      complete: function (file) {
          console.log("Complete");
      }
  }); 
  </code></pre>
  
  <p>So, can I change the previewTemplate inside the callbacks? or simply, keep the one that exists?</p>