# UploadErrorEventHandler

Namespace: **Wisej.Web**

Assembly: **Wisej.Framework** (4.0.0.0)

Represents the method that will handle the [Error](https://docs.wisej.com/api/wisej.web/content/upload/..#error) event of a [Upload](https://docs.wisej.com/api/wisej.web/content/upload) control.

{% tabs %}
{% tab title="C#" %}

```csharp
public delegate void UploadErrorEventHandler(Object sender, UploadErrorEventArgs e)
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Delegate Sub UploadErrorEventHandler(ByVal sender As [Object], ByVal e As UploadErrorEventArgs)
```

{% endtab %}
{% endtabs %}

## Parameters

| Name       | Type                                                                                                       | Description                                                                                                                                |
| ---------- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| **sender** | [Object](https://docs.microsoft.com/dotnet/api/system.object)                                              | The source of the event.                                                                                                                   |
| **e**      | [UploadErrorEventArgs](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderroreventargs) | A [UploadErrorEventArgs](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderroreventargs) that contains the event data. |

## Fired By

| Name                                                                         | Description                                                                                                     |
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [Upload.Error](https://docs.wisej.com/api/wisej.web/content/upload/..#error) | Fired when the [Upload](https://docs.wisej.com/api/wisej.web/content/upload) control generates an upload error. |
