title: Handling upload errors
body: <p>I'm using fine-uploader with AngularJS. This is the configuration I am using in my HTML file:</p>
  
  <pre><code>&lt;div fine-uploader
       upload-server="{{ uploadServer }}"
       not-available-placeholder="/vendor/jquery.fine-uploader/placeholders/not_available-generic.png"
       waiting-placeholder="/vendor/jquery.fine-uploader/placeholders/waiting-generic.png"
       max-file-size="10000000"
       large-preview-size="500"
       allowed-mimes="image/jpeg, image/png"
       allowed-extensions="jpeg, jpg, png"
       token="{{ token }}"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I:</p>
  
  <ol>
  <li><p>Handle file upload errors? For example, I would like to display a custom AngularJS dialog when an upload error happens. Is there any sample code that illustrates how to do this? I already have my own dialog code I can call.</p></li>
  <li><p>Limit the number of retries to 1?</p></li>
  </ol>