I am using Uploadify to upload files. Problem is, I need to inform users of any error during processing of those files.
Uploadify has onError, onComplete, and onAllComplete event handler but I do not know how to trigger these events so that users are informed of what is going on.
Do I need to send JSON string? There is a clue here and here and here but I couldn’t make it to work. Perhaps the posting in the forum is outdated.
Anyone got any example that works for Uploadify 2.1?
This was killing me but I found a way. In the uploadify.php file I created all my validation. The difference here is that I set HTTP 4xx codes for each type of error.
This throws the “405” error back to uploadify.js.
In the file I set $(“#fileInput”).uploadify() I added the “onError” function.
This forces the uploadify default function to exist while kind of extending it.
Hope this help!