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

This event fires if some error occurred during the current upload session.
Syntax
ASP.NET
<script type="text/javascript">
function ImageUploaderFlash1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
</script>
<aur:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server">
<ClientEvents>
<aur:ClientEvent EventName="Error" HandlerName="ImageUploaderFlash1_Error" />
</ClientEvents>
</aur:ImageUploaderFlash>
PHP
<script type="text/javascript">
function ImageUploaderFlash1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
</script>
<?php
$ImageUploaderFlash = new ImageUploaderFlash("ImageUploaderFlash1");
//...other params...
$ImageUploaderFlash->getClientEvents()->setError("ImageUploaderFlash1_Error");
//...other params...
$ImageUploaderFlash->render();
?>
JavaScript
function ImageUploaderFlash1_Error(errorCode, httpResponseCode, errorPage, additionalInfo){
//...your code...
}
$au.imageUploaderFlash({
events: {
//...other params...
error: [ImageUploaderFlash1_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;
- 4 - some server-side error occurred;
- 9 - the upload was aborted by a user;
- 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, this error code also may indicate that the URL specified in the ActionUrl property was not found or has an incorrect syntax.
- 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.