@progress/kendo-angular-upload
Version:
Kendo UI Angular Upload Component
26 lines (25 loc) • 1.11 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 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]({% slug filerestrictions_upload %}#toc-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]({% slug filerestrictions_upload %}#toc-maximum-file-size)).
*/
maxFileSize?: number;
/**
* The minimum file size in bytes
* ([see example]({% slug filerestrictions_upload %}#toc-minimum-file-size)).
*/
minFileSize?: number;
}