Allow uploading files without requiring an upload endpoint #33

Open
opened 2026-02-16 02:17:46 -05:00 by yindo · 0 comments
Owner

Originally created by @thucpn on GitHub (Aug 12, 2025).

Originally assigned to: @thucpn on GitHub.

Description:
In ChatUI, the upload button currently only shown when an upload endpoint is defined. Additionally, the useFile contract is too specific to the /api/upload endpoint of LlamaIndexServer TS.

Expected behavior:

  • The ChatUI upload button should be visible even when no upload endpoint is defined. This is useful for sending files directly to a workflow or llama-deploy without going through a dedicated upload API.
  • useFile should be updated to follow the FilePart contract. In simple terms, when a user uploads a file, it should be represented as a FilePart within message.parts.
  • The frontend should send the message (containing file/text parts) to the backend for processing.
  • The upload logic should be handled in the backend. We can also convert that FilePart into a FileDetailContentPart in a LlamaIndex ChatMessage.
Originally created by @thucpn on GitHub (Aug 12, 2025). Originally assigned to: @thucpn on GitHub. **Description:** In ChatUI, the upload button currently only shown when an upload endpoint is defined. Additionally, the `useFile` contract is too specific to the `/api/upload` endpoint of `LlamaIndexServer TS`. **Expected behavior:** * The ChatUI upload button should be visible even when no upload endpoint is defined. This is useful for sending files directly to a workflow or `llama-deploy` without going through a dedicated upload API. * `useFile` should be updated to follow the `FilePart` contract. In simple terms, when a user uploads a file, it should be represented as a `FilePart` within `message.parts`. * The frontend should send the message (containing file/text parts) to the backend for processing. * The upload logic should be handled in the backend. We can also convert that `FilePart` into a `FileDetailContentPart` in a `LlamaIndex ChatMessage`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/chat-ui#33