New to KendoReactStart a free 30-day trial

PromptBoxSelectAttachmentsEvent
Premium

Updated on Feb 5, 2026

Event argument for the PromptBox onSelectAttachments event. Fires when files are selected via the upload button.

Provides both the newly selected files and the complete state for different use cases:

  • Use selectedFiles for validation, logging, or processing only the newly selected files
  • Use allFiles for state synchronization, displaying total file count, or updating UI with all files
NameTypeDefaultDescription

allFiles

UploadFileInfo[]

All files currently in the PromptBox, including both previously selected and newly selected files. Use this when you need the complete file state for UI updates, total count, or state management.

selectedFiles

UploadFileInfo[]

The newly selected files from this selection event. Use this when you need to process, validate, or log only the files that were just selected. Contains Upload component's UploadFileInfo objects with metadata like size, validation errors, and status. To access the native File object, use fileInfo.getRawFile().

Not finding the help you need?
Contact Support