Aurigma Image Uploader 5.0 Dual
ImageUploader.Error Event
See Also Supported in: ActiveX Java

Raised if some error occurred during upload.

# Syntax

JavaScript | Copy Code
--- | ---
    <script type="text/javascript" src="iuembed.js"></script>
    <script type="text/javascript">
    function ImageUploaderID_Error(ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo) {
    	//...your code...
    }
    var iu = new ImageUploaderWriter("ImageUploaderID", 610, 500);
    //...params...
    //...other event listeners...
    iu.addEventListener("Error", "ImageUploaderID_Error");
    //...other event listeners...
    iu.writeHtml();
    </script>

##### Parameters

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.

# See Also

##### Reference

Progress Event
ShowDebugWindow Property