UploadAsyncSettings
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class UploadAsyncSettings : IUploadAsyncSettings
Inheritance: objectUploadAsyncSettings
Implements:
Inherited Members
Constructors
Initializes a new instance of the UploadAsyncSettings class.
Properties
If the property is set the failed upload request will be repeated after the declared amount of ticks.
public double? AutoRetryAfter { get; set; }
Implements:
Gets or sets a value indicating whether to start the upload immediately after selecting a file
public bool? AutoUpload { get; set; }
true if the upload should start immediately after selecting a file, false otherwise; true by default
Implements:
Gets or sets a value indicating whether to upload selected files in one batch (request)
public bool? Batch { get; set; }
Implements:
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.
public double? ChunkSize { get; set; }
Implements:
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.)
public bool? Concurrent { get; set; }
Implements:
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.
public double? MaxAutoRetries { get; set; }
Implements:
Defines the Remove action
public INavigatable Remove { get; set; }
Implements:
Defines the name of the form field submitted to the Remove action. The default value is "removeField".
public string RemoveField { get; set; }
Implements:
Defines the Save action
public INavigatable Save { get; set; }
Implements:
Defines the name of the form field submitted to the Save action. The default value is the Upload name.
public string SaveField { get; set; }
Implements:
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.
public bool? UseArrayBuffer { get; set; }
Implements:
Gets or sets a value whether to send credentials as part of XHR requests
public bool? WithCredentials { get; set; }
Implements:
Methods
Serializes the asynchronous uploading settings to the writer.
public void SerializeTo(string key, IDictionary<string, object> options)
The serialization key.
optionsIDictionary<string, object>The target dictionary.