# UploadErrorEventArgs

Namespace: **Wisej.Web**

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

Provides data for the [Error](https://docs.wisej.com/api/wisej.web/content/upload/..#error) event.

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

```csharp
public class UploadErrorEventArgs : EventArgs
```

{% endtab %}

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

```visual-basic
Public Class UploadErrorEventArgs
    Inherits EventArgs
```

{% endtab %}
{% endtabs %}

## Constructors

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) UploadErrorEventArgs(type, message, fileNames, fileSizes)

Initializes a new instance of the [UploadErrorEventArgs](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderroreventargs) class with the specified error message.

| Name          | Type                                                                                             | Description                                                                                                              |
| ------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| **type**      | [UploadErrorType](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderrortype) | The error type, one of [UploadErrorType](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderrortype). |
| **message**   | [String](https://docs.microsoft.com/dotnet/api/system.string)                                    | The error message.                                                                                                       |
| **fileNames** | [String\[\]](https://docs.microsoft.com/dotnet/api/system.string)                                | The list of files that failed to upload.                                                                                 |
| **fileSizes** | [Int64\[\]](https://docs.microsoft.com/dotnet/api/system.int64)                                  | The list of files sizes that failed to upload.                                                                           |

## Properties

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) ErrorType

[UploadErrorType](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderrortype): Returns the error type.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FileNames

[String\[\]](https://docs.microsoft.com/dotnet/api/system.string): List of file names that failed to upload.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) FileSizes

[Int64\[\]](https://docs.microsoft.com/dotnet/api/system.int64): List of file sizes that failed to upload.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-2389c55cd19719a73a5ae98e1528c8dc8525cc35%2Finstance.png?alt=media) Message

[String](https://docs.microsoft.com/dotnet/api/system.string): Returns the error message.

## Used By

| Name                                                                                                             | Description                                                                                                                                                                                        |
| ---------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [UploadErrorEventHandler](https://docs.wisej.com/api/wisej.web/content/upload/wisej.web.uploaderroreventhandler) | 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. |
