fires when the file upload has failed
myForm.attachEvent("onUploadFail",function(realName){ // your code here });