Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FileUploadHookState<CustomError>

remarks

@since 2.9.0

internal

Type parameters

  • CustomError = never

    An optional error type that gets returned from the FilesValidator.

Hierarchy

Index

Properties

errors: readonly FileValidationError<CustomError>[]

A list of validation errors that have occurred before starting the upload process.

see

FileAccessError

see

TooManyFilesError

see

FileValidationError

readers: Readonly<Record<string, FileReader>>

All the current readers used for uploading files to the browser.

Note: Once an upload has completed, the reader will be removed.

stats: Readonly<Record<string, Readonly<FileUploadStats>>>

All the files that have been validated and are either:

  • pending upload
  • uploading
  • complete

Each key in this object is the BaseFileUploadStats.key generated once the upload starts pending.

Generated using TypeDoc