title: How to display error message of jquery dropzone
body: <p>I use dropzone with CI, i don't know how to display error message and custom message when upload false, this is  my script</p>
  
  <pre><code>Dropzone.autoDiscover = false;
          try {
              var myDropzone = new Dropzone("#adminform" , {
                  paramName: "filename", // The name that will be used to transfer the file
                  maxFilesize: 0.5, // MB
                  url: window.location.href,
                  addRemoveLinks : true,
                  dictDefaultMessage :
                  '&lt;span class="bigger-150 bolder"&gt;&lt;i class="ace-icon fa fa-caret-right red"&gt;&lt;/i&gt; Drop files&lt;/span&gt; to upload \
                  &lt;span class="smaller-80 grey"&gt;(or click)&lt;/span&gt; &lt;br /&gt; \
                  &lt;i class="upload-icon ace-icon fa fa-cloud-upload blue fa-3x"&gt;&lt;/i&gt;',
                  dictResponseError: 'Error while uploading file!',
  
                  //change the previewTemplate to use Bootstrap progress bars
                  previewTemplate: "&lt;div class=\"dz-preview dz-file-preview\"&gt;\n  &lt;div class=\"dz-details\"&gt;\n    &lt;div class=\"dz-filename\"&gt;&lt;span data-dz-name&gt;&lt;/span&gt;&lt;/div&gt;\n    &lt;div class=\"dz-size\" data-dz-size&gt;&lt;/div&gt;\n    &lt;img data-dz-thumbnail /&gt;\n  &lt;/div&gt;\n  &lt;div class=\"progress progress-small progress-striped active\"&gt;&lt;div class=\"progress-bar progress-bar-success\" data-dz-uploadprogress&gt;&lt;/div&gt;&lt;/div&gt;\n  &lt;div class=\"dz-success-mark\"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;\n  &lt;div class=\"dz-error-mark\"&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;\n  &lt;div class=\"dz-error-message\"&gt;&lt;span data-dz-errormessage&gt;&lt;/span&gt;&lt;/div&gt;\n&lt;/div&gt;",
              });
          } 
          catch(e) {
              alert('Dropzone does not support older browsers!');
          }
  </code></pre>
  
  <p>And PHP return 400:</p>
  
  <pre><code>$this-&gt;output-&gt;set_header("HTTP/1.0 400 Bad Request");
  </code></pre>
  
  <p>But when i hover image it's display [object Object] but message is:</p>
  
  <blockquote>
    <p>dictResponseError: 'Error while uploading file!'</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/IOMfN.png" alt="enter image description here"></p>