Raised if some error occurred during the current package upload.

Syntax

JavaScript CopyCode imageCopy Code
<script type="text/javascript" src="iuembed.js"></script>
<script type="text/javascript">
function ImageUploaderID_PackageError(PackageIndexErrorCodeHttpResponseCodeErrorPageAdditionalInfo) {
	//...your code...
}
var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
//...params...
//...other event listeners...
iu.addEventListener("PackageError", "ImageUploaderID_PackageError");
//...other event listeners...
iu.writeHtml();
</script>
Parameters
PackageIndex

Zero-based index of the package (i.e. request) inside the current upload session.

ErrorCode

One of the following values:

  • 1 - Number of selected files is less than number of files allowed for the upload;
  • 2 - The server, specified in the Action URL was not found (it is down or its name is misspelled);
  • 3 - The URL, specified in the Action property has an incorrect syntax;
  • 4 - Some server-side error occurred;
  • 8 - Total size of selected files exceeds the MaxTotalFileSize value;
  • 11 - The server returned HTTP code 3xx (e.g. 302 or 304) during redirection;
  • 12 - The upload was aborted from the script (using the Stop method);
  • 0 - Unknown error.
HttpResponseCode

HTTP error code received from the server (if any).

ErrorPage

A web page containing error description, retirned from the server (if any).

AdditionalInfo

Text message that can be displayed to the user. The same message the user would see, if they set the ShowDebugWindow property to true.

Remarks

This event allows you to handle errors which can occur during the upload of each package.

See Also

Reference
PackageBeforeUpload Event
PackageComplete Event
PackageProgress Event
Error Event
ShowDebugWindow Property