---
title: "Class UploadRequest"
slug: "web-sdk--stylelabs.m.sdk.webclient.models.upload.uploadrequest"
abstract: ""
---
# Class UploadRequest

Describes the upload request.

## Inheritance

object

UploadRequest

## Namespace: StylelabsStylelabs.MSdkWebClientModelsUpload

## Assembly: Stylelabs.M.Sdk.WebClient.dll

## Syntax

```csharp
public class UploadRequest
```

## Constructors

### UploadRequest(IUploadSource, string, string)

Initializes a new instance of the [UploadRequest](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.models.upload.uploadrequest.html) class.

#### Declaration

```csharp
public UploadRequest(IUploadSource source, string configurationName, string actionName)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [IUploadSource](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.contracts.upload.iuploadsource.html) | source | The source. |
| string | configurationName | The configuration name. |
| string | actionName | The action name. |

## Properties

### ActionName

Gets the upload action name (e.g. "NewAsset", "NewMainFile", "NewAlternativeFile").

#### Declaration

```csharp
public string ActionName { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### ActionParameters

Gets or sets the upload action parameters.

#### Declaration

```csharp
public IDictionary<string, object> ActionParameters { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IDictionary<, >stringobject |  |

### ConfigurationName

Gets the upload configuration name.

#### Declaration

```csharp
public string ConfigurationName { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |

### ConfigurationParameters

Gets or sets the upload configuration parameters.

#### Declaration

```csharp
public IDictionary<string, object> ConfigurationParameters { get; set; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IDictionary<, >stringobject |  |

### Source

Gets provides access the the file that will be uploaded.

#### Declaration

```csharp
public IUploadSource Source { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| [IUploadSource](https://doc.sitecore.com/ch/en/developers/api-reference/web-sdk--stylelabs.m.sdk.webclient.contracts.upload.iuploadsource.html) |  |
