New to KendoReact? Start a free 30-day trial
PromptBoxSelectAttachmentsEvent
PromptBoxSelectAttachmentsEventPremium
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
selectedFilesfor validation, logging, or processing only the newly selected files - Use
allFilesfor state synchronization, displaying total file count, or updating UI with all files
| Name | Type | Default | Description |
|---|---|---|---|
allFiles |
|
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 |
|
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(). |