New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Definition

Namespace:Kendo.Mvc.UI

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class UploadAsyncSettings : IUploadAsyncSettings

Inheritance: objectUploadAsyncSettings

Implements: IUploadAsyncSettings

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the UploadAsyncSettings class.

C#
public UploadAsyncSettings(Upload uploadComponent)
Parameters:uploadComponentUpload

Properties

If the property is set the failed upload request will be repeated after the declared amount of ticks.

C#
public double? AutoRetryAfter { get; set; }

Implements: IUploadAsyncSettings.AutoRetryAfter

Gets or sets a value indicating whether to start the upload immediately after selecting a file

C#
public bool? AutoUpload { get; set; }
Property Value:

true if the upload should start immediately after selecting a file, false otherwise; true by default

Implements: IUploadAsyncSettings.AutoUpload

Gets or sets a value indicating whether to upload selected files in one batch (request)

C#
public bool? Batch { get; set; }

Implements: IUploadAsyncSettings.Batch

When the property is set the selected files will be 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 a stringified JSON and contains chunkIndex, contentType, totalFileSize, totalChunks, uploadUid properties that allow validating and combining the file on the server side. The response also returns a JSON object with uploaded and fileUid properties that notifies the client which should be the next chunk.

C#
public double? ChunkSize { get; set; }

Implements: IUploadAsyncSettings.ChunkSize

By default the selected files are uploaded one after another. When set to 'true' all the selected files start uploading simultaneously. (The property is available when the async.chunkSize is set.)

C#
public bool? Concurrent { get; set; }

Implements: IUploadAsyncSettings.Concurrent

It sets the number of attempts that will be performed if an upload is failing. The property is only used when the async.autoRetryAfter property is also defined.

C#
public double? MaxAutoRetries { get; set; }

Implements: IUploadAsyncSettings.MaxAutoRetries

Defines the Remove action

C#
public INavigatable Remove { get; set; }

Implements: IUploadAsyncSettings.Remove

Defines the name of the form field submitted to the Remove action. The default value is "removeField".

C#
public string RemoveField { get; set; }

Implements: IUploadAsyncSettings.RemoveField

Defines the Save action

C#
public INavigatable Save { get; set; }

Implements: IUploadAsyncSettings.Save

Defines the name of the form field submitted to the Save action. The default value is the Upload name.

C#
public string SaveField { get; set; }

Implements: IUploadAsyncSettings.SaveField

By default, the files are uploaded as filedata. When set to true, the files are read as file buffer by using FileReader and this buffer is send in the request body.

C#
public bool? UseArrayBuffer { get; set; }

Implements: IUploadAsyncSettings.UseArrayBuffer

Gets or sets a value whether to send credentials as part of XHR requests

C#
public bool? WithCredentials { get; set; }

Implements: IUploadAsyncSettings.WithCredentials

Methods

Serializes the asynchronous uploading settings to the writer.

C#
public void SerializeTo(string key, IDictionary<string, object> options)
Parameters:keystring

The serialization key.

optionsIDictionary<string, object>

The target dictionary.