\Kendo\UI\FileManagerUploadAsync

A PHP class representing the async setting of FileManagerUpload.

Methods

autoRetryAfter

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

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value float

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->autoRetryAfter(1);
?>

autoUpload

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

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value boolean

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->autoUpload(true);
?>

batch

All selected files are uploaded in one request.

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value boolean

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->batch(true);
?>

chunkSize

When async.chunkSize is set, the selected files are uploaded chunk by chunk with the declared size.

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value float

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->chunkSize(1);
?>

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

\Kendo\UI\FileManagerUploadAsync

Parameters

$value boolean

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->concurrent(true);
?>

maxAutoRetries

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

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value float

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->maxAutoRetries(1);
?>

saveField

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

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value string

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->saveField('value');
?>

saveUrl

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.

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value string

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->saveUrl('value');
?>

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.

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value boolean

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->useArrayBuffer(true);
?>

withCredentials

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

Returns

\Kendo\UI\FileManagerUploadAsync

Parameters

$value boolean

Example

<?php
$async = new \Kendo\UI\FileManagerUploadAsync();
$async->withCredentials(true);
?>
In this article
Not finding the help you need?