/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { UploadFileStatus } from './UploadFileStatus'; /** * Contains information which is related to the selected file. */ export interface UploadFileInfo { /** * The unique identifier of the group (batch) with one or more files. * Has to be set for the initial list of files. */ uid: string; /** * The file name. */ name: string; /** * The file extension including the leading dot—for example, `.jpg`, `.png`, or other. */ extension?: string; /** * The file size in bytes. */ size?: number; /** * A list which contains the validation errors (if any). */ validationErrors?: Array; /** * The current state of the file—`Failed`, `Selected`, `Uploaded`, or `Uploading`. * `Initial` is a special value for `FileState` and is * automatically applied to initial files without you having to explicitly set their state. */ status: UploadFileStatus; /** * The current upload progress. */ progress: number; /** * Gets the raw file instance. */ getRawFile?: () => File; }