\Kendo\UI\FileManagerUpload

A PHP class representing the upload setting of FileManager.

Methods

async

Configures the asynchronous upload of files. For more details, refer to the article on the async mode of the Upload.

Returns

\Kendo\UI\FileManagerUpload

Parameters

$value \Kendo\UI\FileManagerUploadAsync|array

Example - using \Kendo\UI\FileManagerUploadAsync

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

Example - using array

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$autoRetryAfter = 1;
$upload->async(array('autoRetryAfter' => $autoRetryAfter));
?>

directory

Enables the selection of folders instead of files.

Returns

\Kendo\UI\FileManagerUpload

Parameters

$value boolean

Example

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$upload->directory(true);
?>

localization

Sets the strings rendered by the Upload.

Returns

\Kendo\UI\FileManagerUpload

Parameters

$value \Kendo\UI\FileManagerUploadLocalization|array

Example - using \Kendo\UI\FileManagerUploadLocalization

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$localization = new \Kendo\UI\FileManagerUploadLocalization();
$cancel = 'value';
$localization->cancel($cancel);
$upload->localization($localization);
?>

Example - using array

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$cancel = 'value';
$upload->localization(array('cancel' => $cancel));
?>

multiple

Enables (if set to true) or disables (if set to false) the selection of multiple files. If set to false, the user can select only one file at a time.

Returns

\Kendo\UI\FileManagerUpload

Parameters

$value boolean

Example

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$upload->multiple(true);
?>

showFileList

Enables (if set to true) or disables (if set to false) the display of a file listing for the file upload. The disabling of a file listing might be useful if you want to customize the UI. To build your own UI, use the client-side events.

Returns

\Kendo\UI\FileManagerUpload

Parameters

$value boolean

Example

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$upload->showFileList(true);
?>

validation

Configures the validation options for uploaded files.

Returns

\Kendo\UI\FileManagerUpload

Parameters

$value \Kendo\UI\FileManagerUploadValidation|array

Example - using \Kendo\UI\FileManagerUploadValidation

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$validation = new \Kendo\UI\FileManagerUploadValidation();
$maxFileSize = 1;
$validation->maxFileSize($maxFileSize);
$upload->validation($validation);
?>

Example - using array

<?php
$upload = new \Kendo\UI\FileManagerUpload();
$maxFileSize = 1;
$upload->validation(array('maxFileSize' => $maxFileSize));
?>
In this article
Not finding the help you need?