title: Uploadify v3 onUploadError howto
body: <p>Been playing around with <code>Uploadify v3</code> for few days now and just came to realize some of the codes have been rewritten, for example, <code>onError</code> is no longer existed, I am assuming it's been replaced by <code>onUploadError</code>.  </p>
  
  <p>What i am trying to achieve is to be able to return non-compliance error to users either through putting a message in the div (preferred method) or alert.
  Looking at the closest solution <a href="https://stackoverflow.com/questions/2036296/how-to-trigger-uploadify-onerror-event-handler">How to trigger uploadify onError event handler</a>, but it's outdated as it's for v2.  </p>
  
  <p>Using the same method as the outdated post up there, I have <code>$("#fileInput").uploadify()</code> with onUploadError added:</p>
  
  <pre><code>'onUploadError' : function(file,errorCode,errorMsg) {
          var r = '&lt;br /&gt;ERROR: ';
          switch(errorMsg) {
                  case 405:
                          r += 'Invalid file type.';
                          break;
                  case 406:
                          r += 'Some other error.';
                          break;
          }
          alert(r);
          setTimeout('$("#fileInput'+ ID + 'span.data").html("'+r+'");',111);                      
  }
  </code></pre>
  
  <p>The problems I am having right now are:  </p>
  
  <ol>
  <li>Alert returns undefined using the codes above</li>
  <li>setTimeout doesn't do anything</li>
  </ol>
  
  <p>How can you solve these problems?</p>