FileManagerUploadValidationSettingsBuilder

Methods

AllowedExtensions(System.String[])

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

Parameters

value - System.String[]

The value for AllowedExtensions

Example

Razor
 
                @(Html.Kendo().FileManager()
                    .Name("filemanager")
                    .Upload(upload => upload
                        .Validation(validation => validation
                            .AllowedExtensions(new string[] { ".pdf" })
                        )
                    )
                )
             

MaxFileSize(System.Double)

Defines the maximum file size in bytes allowed for upload.

Parameters

value - System.Double

The value for MaxFileSize

MinFileSize(System.Double)

Defines the minimum file size in bytes allowed for upload.

Parameters

value - System.Double

The value for MinFileSize