---
title: "Uploader.Error Event ActiveX/Java Uploader "
canonical: https://www.aurigma.com/docs/us8/JA_E_Uploader_Error.htm
product: "Upload Suite 8"
---

# Uploader.Error Event ActiveX/Java Uploader 

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
This event fires if some error occurred during the current upload session.

## Syntax
 
```aspx-cs
<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>
```
 
```
<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();
?>
```
 
```
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[ActionUrl (ASP.NET)](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_UploadSettings_ActionUrl.htm.md)[ActionUrl (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_UploadSettings_ActionUrl.htm.md)[actionUrl (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_uploadSettings_actionUrl.htm.md) 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 3*xx* (e.g. 302 or 304) during redirection;
- **12** - the upload was aborted from the script (using the [cancelUpload()](https://www.aurigma.com/docs/us8/JA_M_J_$au_uploader_cancelUpload.htm.md) method);
- **13** - the trial period has expired;
- **18** - the upload was aborted from the [AfterPackageUpload](https://www.aurigma.com/docs/us8/JA_E_Uploader_AfterPackageUpload.htm.md) 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.

## See Also
 
### Reference
 
- Error Property[Error (PHP)](https://www.aurigma.com/docs/us8/JA_P_P_ClientEvents_Error.htm.md)[error (JavaScript)](https://www.aurigma.com/docs/us8/JA_P_J_$au_events_error.htm.md)

### Manual
 
- [Using Events](https://www.aurigma.com/docs/us8/using-javascript-api.htm.md)
