Defines the fluent API for configuring FileManagerUploadAsyncSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class FileManagerUploadAsyncSettingsBuilder
Inheritance: objectFileManagerUploadAsyncSettingsBuilder
Inherited Members
Constructors
FileManagerUploadAsyncSettingsBuilder method.
public FileManagerUploadAsyncSettingsBuilder(FileManagerUploadAsyncSettings container)
Properties
Gets the settings being configured.
protected FileManagerUploadAsyncSettings Container { get; }
Methods
If async.autoRetryAfter is set, the failed upload request is repeated after the declared amount of time in miliseconds.
public FileManagerUploadAsyncSettingsBuilder AutoRetryAfter(double value)
The value for AutoRetryAfter
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
By default, the selected files are uploaded immediately. To change this behavior, set autoUpload to false.
public FileManagerUploadAsyncSettingsBuilder AutoUpload(bool value)
The value for AutoUpload
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
All selected files are uploaded in one request.
public FileManagerUploadAsyncSettingsBuilder Batch(bool value)
The value for Batch
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
When async.chunkSize is set, the selected files are uploaded chunk by chunk with the declared size.
public FileManagerUploadAsyncSettingsBuilder ChunkSize(double value)
The value for ChunkSize
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
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.
public FileManagerUploadAsyncSettingsBuilder Concurrent(bool value)
The value for Concurrent
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
Sets the maximum number of attempts that are performed if an upload fails.
public FileManagerUploadAsyncSettingsBuilder MaxAutoRetries(double value)
The value for MaxAutoRetries
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
The name of the form field which is submitted to saveUrl. The default value is the input name.
public FileManagerUploadAsyncSettingsBuilder SaveField(string value)
The value for SaveField
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
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.
public FileManagerUploadAsyncSettingsBuilder SaveUrl(string value)
The value for SaveUrl
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
By default, the files are uploaded as file data. When set to true, the files are read as a file buffer by using FileReader.
public FileManagerUploadAsyncSettingsBuilder UseArrayBuffer(bool value)
The value for UseArrayBuffer
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.
Controls whether to send credentials (cookies, headers) for cross-site requests.
public FileManagerUploadAsyncSettingsBuilder WithCredentials(bool value)
The value for WithCredentials
Returns:FileManagerUploadAsyncSettingsBuilder
Returns the current FileManagerUploadAsyncSettingsBuilder instance.