\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);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy