- Upload Suite Overview
- What's New?
- Choosing Upload Technology
- Evaluating Upload Suite
- Upload Suite Editions
- System Requirements
- Installation and Deployment Notes
- ActiveX/Java Uploader
- Where ActiveX/Java Uploader Can Be Useful
- Before You Started with ActiveX/Java Uploader
- ActiveX/Java Uploader Fundamentals
- ActiveX/Java Uploader User Interface
- Getting Started
- Using ActiveX/Java Uploader
- Troubleshooting
- Reference
- ActiveX/Java Uploader ASP.NET Reference
- ActiveX/Java Uploader PHP Reference
- ActiveX/Java Uploader JavaScript Reference
- ActiveX/Java Uploader Client-Side Events Reference
- Uploader Client-Side Events
- AfterPackageUpload Event ActiveX/Java Uploader
- AfterSendRequest Event ActiveX/Java Uploader
- AfterUpload Event ActiveX/Java Uploader
- BeforePackageUpload Event ActiveX/Java Uploader
- BeforeSendRequest Event ActiveX/Java Uploader
- BeforeUpload Event ActiveX/Java Uploader
- Error Event ActiveX/Java Uploader
- FolderChange Event ActiveX/Java Uploader
- ImageEditorClose Event ActiveX/Java Uploader
- ImageRotated Event ActiveX/Java Uploader
- InitComplete Event ActiveX/Java Uploader
- PreRender Event ActiveX/Java Uploader
- Progress Event ActiveX/Java Uploader
- RestrictionFailed Event ActiveX/Java Uploader
- SelectionChange Event ActiveX/Java Uploader
- UploadFileCountChange Event ActiveX/Java Uploader
- ViewChange Event ActiveX/Java Uploader
- Thumbnail Client-Side Events
- Uploader Client-Side Events
- POST Field Reference
- HTML5/Flash Uploader
- Licensing Information
- Legal Notices
Uploader.Error Event ActiveX/Java Uploader
Supported browsers:



This event fires if some error occurred during the current upload session.
Syntax
ASP.NET
<script type="text/javascript">
function Uploader1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
</script>
<aur:Uploader ID="Uploader1" runat="server">
<ClientEvents>
<aur:ClientEvent EventName="Error" HandlerName="Uploader1_Error" />
</ClientEvents>
</aur:Uploader>
PHP
<script type="text/javascript">
function Uploader1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
</script>
<?php
$Uploader = new Uploader("Uploader1");
//...other params...
$Uploader->getClientEvents()->setError("Uploader1_Error");
//...other params...
$Uploader->render();
?>
JavaScript
function Uploader1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
$au.uploader({
events: {
//...other params...
error: [Uploader1_Error],
//...other params...
}
})
Parameters
- errorCode
-
Type: Number
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 ActionUrl property was not found;
- 3 - the URL specified in the ActionUrl property has an incorrect syntax;
- 4 - some server-side error occurred;
- 9 - the upload was aborted by a user;
- 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 cancelUpload() method);
- 13 - the trial period has expired;
- 18 - the upload was aborted from the AfterPackageUpload event handler (the handler returns
false); - 0 - unknown error.
- httpResponseCode
-
Type: Number
The HTTP error code received from the server (if any).
- errorPage
-
Type: String
The web page containing error description, returned from the server (if any).
- additionalInfo
-
Type: String
Text message that can be displayed to the user.
Remarks
This event allows you to handle errors which can occur during the upload.