0

My AjaxFileUpload control is failing for a user's upload, and I can't figure out why. I added an OnclientUploadError Javascript stub which does indeed fire--but how do I get the actual error message or code?

pbickford
  • 59
  • 1
  • 14

1 Answers1

1

As you can see on a Sample site, there are 2 parameters passed to an error handler - sender and event (ore`):

function onClientUploadError(sender, e) {
    document.getElementById('uploadCompleteInfo').innerHTML = "There was an error while uploading.";
}

You can check the second parameter for details of an error.