chat_ui/src/message_composer/upload/attachment_tray_controller library

Classes

AttachmentTile
One staged item in the tray, keyed by the app-supplied fileId.
AttachmentTrayController
Owns the composer's staging model and drives the SDK's multi-upload surface: a per-composer UploadFileRequest (CometChat.createUploadFileRequest).

Exceptions / Errors

AttachmentStageException
Thrown by AttachmentTrayController.stage when a batch cannot be staged at all — the composer hasn't bound a conversation yet. The caller (composer) surfaces message to the user so the failure isn't swallowed silently. cause is the original error, when there is one.