Skip to content

docs: Document how to compose MessageInput with modular upload for file attachments#5474

Open
Artur- wants to merge 1 commit intomainfrom
modular-upload-messageinput
Open

docs: Document how to compose MessageInput with modular upload for file attachments#5474
Artur- wants to merge 1 commit intomainfrom
modular-upload-messageinput

Conversation

@Artur-
Copy link
Copy Markdown
Member

@Artur- Artur- commented Apr 14, 2026

Add a File Attachments section to the MessageInput docs with a live example showing how to compose UploadManager, UploadButton, and UploadFileList with MessageInput for a chat-with-attachments experience.

Add a Chat Input with Attachments section to the Modular Upload docs with the same example. Add cross-links between MessageInput, MessageList, Modular Upload, and AI file-attachments pages so users can discover the integration regardless of which page they start from.

…le attachments

Add a File Attachments section to the MessageInput docs with a live
example showing how to compose UploadManager, UploadButton, and
UploadFileList with MessageInput for a chat-with-attachments experience.

Add a Chat Input with Attachments section to the Modular Upload docs
with the same example. Add cross-links between MessageInput, MessageList,
Modular Upload, and AI file-attachments pages so users can discover the
integration regardless of which page they start from.
@github-actions
Copy link
Copy Markdown

Preview Deployment

This PR has been deployed for preview.

URL: https://docs-preview-pr-5474.fly.dev

Built from 0e281c2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example doesn't work, upload button and the file list are not rendered / registered as custom components.

// Add pending files as attachments
for (var entry : pendingFiles.entrySet()) {
message.addAttachment(new MessageListItem.Attachment(
entry.getKey(), "#", "application/octet-stream"));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part doesn't look helpful. It's not clear how to convert something received from the upload handler into a URL that you can provide here. Also the mime type doesn't match what was uploaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants