\Kendo\UI\UploadValidation

A PHP class representing the validation setting of Upload.

Methods

allowedExtensions

A list of the file extensions which are allowed for upload. Recognizes entries of both .type and type values.

Returns

\Kendo\UI\UploadValidation

Parameters

$value array

Example

<?php
$validation = new \Kendo\UI\UploadValidation();
$validation->allowedExtensions(array());
?>

maxFileSize

Defines the maximum file size in bytes allowed for upload.

Returns

\Kendo\UI\UploadValidation

Parameters

$value float

Example

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

minFileSize

Defines the minimum file size in bytes allowed for upload.

Returns

\Kendo\UI\UploadValidation

Parameters

$value float

Example

<?php
$validation = new \Kendo\UI\UploadValidation();
$validation->minFileSize(1);
?>
In this article
Not finding the help you need?