@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
26 lines (25 loc) • 1.24 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Configures the restrictions for the files that can be uploaded.
*/
export interface FileRestrictions {
/**
* The list of allowed file extensions
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/restrictions#file-extension)).
* Accepts entries of both `.type` (for example, `.docx`, `.png`, `.svg`, `.xls`) and `type` (for example, `docx`, `png`, `svg`, `xls`) values.
*/
allowedExtensions?: Array<string>;
/**
* The maximum file size in bytes
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/restrictions#maximum-file-size)).
*/
maxFileSize?: number;
/**
* The minimum file size in bytes
* ([see example](https://www.telerik.com/kendo-angular-ui/components/uploads/upload/restrictions#minimum-file-size)).
*/
minFileSize?: number;
}