# UploadAsyncSettingsBuilder

## Methods

### Save(System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the action, controller and route values for the save operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Save", "Home", new RouteValueDictionary{ {"id", 1} })
                        )
            )
             
```

### Save(System.String,System.String,System.Object)

Sets the action, controller and route values for the save operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

##### routeValues - `System.Object`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Save", "Home", new { id = 1 })
                        )
            )
             
```

### Save(System.String,System.String)

Sets the action and controller for the save operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Save", "Home")
                        )
            )
             
```

### Save(System.String)

Sets the route name for the save operation

#### Parameters

##### routeName - `System.String`

Name of the route.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Default")
                        )
            )
             
```

### Save(Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route values for the save operation

#### Parameters

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values of the action method.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save(MVC.Home.Save(1).GetRouteValueDictionary())
                        )
            )
             
```

### Save(System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route and values for the save operation

#### Parameters

##### routeName - `System.String`

Name of the route.

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Default", new RouteValueDictionary{ {"id", 1} })
                        )
            )
             
```

### Save(System.String,System.Object)

Sets the route and values for the save operation

#### Parameters

##### routeName - `System.String`

Name of the route.

##### routeValues - `System.Object`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Default", new { id = 1 })
                        )
            )
             
```

### Save(System.Linq.Expressions.Expression)

Sets the action for the save operation

#### Parameters

##### controllerAction - `System.Linq.Expressions.Expression<Action>`

The action.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save<HomeController>(controller => controller.Save())
                        )
            )
             
```

### Remove(System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the action, controller and route values for the remove operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove("Remove", "Home", new RouteValueDictionary{ {"id", 1} })
                        )
            )
             
```

### Remove(System.String,System.String,System.Object)

Sets the action, controller and route values for the remove operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

##### routeValues - `System.Object`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove("Remove", "Home", new { id = 1 })
                        )
            )
             
```

### Remove(System.String,System.String)

Sets the action and controller for the remove operation

#### Parameters

##### actionName - `System.String`

Name of the action.

##### controllerName - `System.String`

Name of the controller.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove("Remove", "Home")
                        )
            )
             
```

### Remove(System.String)

Sets the route name for the remove operation

#### Parameters

##### routeName - `System.String`

Name of the route.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove("Default")
                        )
            )
             
```

### Remove(Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route values for the remove operation

#### Parameters

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values of the action method.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove(MVC.Home.Remove(1).GetRouteValueDictionary())
                        )
            )
             
```

### Remove(System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route and values for the remove operation

#### Parameters

##### routeName - `System.String`

Name of the route.

##### routeValues - `Microsoft.AspNetCore.Routing.RouteValueDictionary`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove("Default", new RouteValueDictionary{ {"id", 1} })
                        )
            )
             
```

### Remove(System.String,System.Object)

Sets the route and values for the remove operation

#### Parameters

##### routeName - `System.String`

Name of the route.

##### routeValues - `System.Object`

The route values.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove("Default", new { id = 1 })
                        )
            )
             
```

### Remove(System.Linq.Expressions.Expression)

Sets the action for the remove operation

#### Parameters

##### controllerAction - `System.Linq.Expressions.Expression<Action>`

The action.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
             @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Remove<HomeController>(controller => controller.Remove())
                        )
            )
             
```

### AutoUpload(System.Boolean)

By default, the selected files are uploaded immediately. To change this behavior, set autoUpload to false.

#### Parameters

##### value - `System.Boolean`

The value for AutoUpload

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Save", "Home", new RouteValueDictionary{ {"id", 1} })
                        )
            )
             
```

### Batch(System.Boolean)

By default and if supported by the browser, the selected files are uploaded in separate requests. To change this behavior, set batch to true. As a result, all selected files are uploaded in one request.The batch mode applies to multiple files which are selected simultaneously. Files that are selected one after the other are uploaded in separate requests.

#### Parameters

##### value - `System.Boolean`

The value for Batch

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Save", "Home")
                            .Batch(true)
                        )
            )
             
```

### Batch()

By default and if supported by the browser, the selected files are uploaded in separate requests. To change this behavior, set batch to true. As a result, all selected files are uploaded in one request.The batch mode applies to multiple files which are selected simultaneously. Files that are selected one after the other are uploaded in separate requests.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .Save("Save", "Home")
                            .Batch(true)
                        )
            )
             
```

### ChunkSize(System.Double)

When async.chunkSize is set, the selected files are uploaded chunk by chunk with the declared size. Each request sends a separate file blob and additional string metadata to the server. This metadata is in a stringified JSON format and contains the fileName, relativePath, chunkIndex, contentType, totalFileSize, totalChunks, and uploadUid properties. These properties enable the validation and combination of the file on the server side. The response also returns a JSON object with the uploaded and fileUid properties, which notifies the client what the next chunk is.

#### Parameters

##### value - `System.Double`

The value for ChunkSize

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Chunk_Upload_Save", "Home")
                           .Remove("Chunk_Upload_Remove", "Home")
                           .ChunkSize(11000)
                        )
            )
             
```

### Concurrent(System.Boolean)

By default, the selected files are uploaded one after the other. When async.concurrent is set to true, all selected files start to upload simultaneously.

#### Parameters

##### value - `System.Boolean`

The value for Concurrent

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Chunk_Upload_Save", "Home")
                           .ChunkSize(11000)
                           .Concurrent()
                        )
            )
             
```

### Concurrent()

By default, the selected files are uploaded one after the other. When async.concurrent is set to true, all selected files start to upload simultaneously.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Chunk_Upload_Save", "Home")
                           .ChunkSize(11000)
                           .Concurrent()
                        )
            )
             
```

### AutoRetryAfter(System.Double)

If async.autoRetryAfter is set, the failed upload request is repeated after the declared amount of time in miliseconds.

#### Parameters

##### value - `System.Double`

The value for AutoRetryAfter

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Save", "Home")
                           .AutoRetryAfter(300)
                        )
            )
             
```

### MaxAutoRetries(System.Double)

Sets the maximum number of attempts that are performed if an upload fails.

#### Parameters

##### value - `System.Double`

The value for MaxAutoRetries

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Save", "Home")
                           .AutoRetryAfter(300)
                           .MaxAutoRetries(4)
                        )
            )
             
```

### RemoveField(System.String)

The name of the form field that is submitted to removeUrl.

#### Parameters

##### value - `System.String`

The value for RemoveField

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .RemoveField("attachments")
                        )
            )
             
```

### RemoveUrl(System.String)

The URL of the handler which is responsible for the removal of the uploaded files (if any). The handler must accept POST requests with one or more "fileNames" fields which specify the files that will be deleted.

#### Parameters

##### value - `System.String`

The value for RemoveUrl

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .RemoveUrl("/remove")
                        )
            )
             
```

### RemoveVerb(System.String)

The HTTP verb that will be used by the remove action.

#### Parameters

##### value - `System.String`

The value for RemoveVerb

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

### SaveField(System.String)

The name of the form field which is submitted to saveUrl. The default value is the input name.

#### Parameters

##### value - `System.String`

The value for SaveField

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .SaveField("attachment")
                        )
            )
             
```

### SaveUrl(System.String)

The URL of the handler that will receive the submitted files. The handler must accept POST requests which contain one or more fields with the same name as the original input name.

#### Parameters

##### value - `System.String`

The value for SaveUrl

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                            .SaveUrl("/save")
                        )
            )
             
```

### UseArrayBuffer(System.Boolean)

By default, the files are uploaded as file data. When set to true, the files are read as a file buffer by using FileReader. This buffer is sent in the request body.

#### Parameters

##### value - `System.Boolean`

The value for UseArrayBuffer

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Save", "Home")
                           .UseArrayBuffer(true)
                        )
            )
             
```

### UseArrayBuffer()

By default, the files are uploaded as file data. When set to true, the files are read as a file buffer by using FileReader. This buffer is sent in the request body.

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .Save("Save", "Home")
                           .UseArrayBuffer(true)
                        )
            )
             
```

### WithCredentials(System.Boolean)

Controls whether to send credentials (cookies, headers) for cross-site requests.

#### Parameters

##### value - `System.Boolean`

The value for WithCredentials

#### RETURNS

Returns the current [UploadAsyncSettingsBuilder](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/uploadasyncsettingsbuilder) instance.

#### Example

```
 
            @( Html.Kendo().Upload()
                        .Name("Upload")
                        .Async(async => async
                           .WithCredentials(false)
                        )
            )
             
```
