This documentation is for the old version. Go to the latest Upload Suite docs

ImageUploader.PackageError Event

Supported in: ActiveX , Java

Raised if some error occurred during the current package upload.

Syntax

JavaScript
<script type="text/javascript" src="iuembed.js">  </script>
<script type="text/javascript">
function ImageUploaderID_PackageError(PackageIndex, ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo) {
	//...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 URL specified in the Action property was not found;
  • 3 - The URL specified in the Action property has an incorrect syntax;
  • 4 - Some server-side error occurred;
  • 9 - The upload was aborted from the Progress Dialog;
  • 10 - The Java applet throws an out of memory exception;
  • 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);
  • 13 - The trial period has expired.
  • 18 - The upload was aborted from the PackageComplete event handler (the handler returns false);
  • 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