[GH-ISSUE #3518] [FEAT]: Upload Images to Workspace or Thread via API #2271

Closed
opened 2026-02-22 18:28:55 -05:00 by yindo · 3 comments
Owner

Originally created by @genhung on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3518

What would you like to see?

Can the API support this feature?

Originally created by @genhung on GitHub (Mar 23, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3518 ### What would you like to see? Can the API support this feature?
yindo added the enhancementfeature request labels 2026-02-22 18:28:55 -05:00
yindo closed this issue 2026-02-22 18:28:55 -05:00
Author
Owner

@timothycarambat commented on GitHub (Mar 24, 2025):

/v1/workspace/:slug/chat and /v1/workspace/:slug/thread/:threadSlug/chat both already support this. Just check the API docs on your instance to see this in the example in the Swagger docs

example request

{
             "message": "What is AnythingLLM?",
             "mode": "query | chat",
             "sessionId": "identifier-to-partition-chats-by-external-id",
             "attachments": [
               {
                 "name": "my-image.png",
                 "mime": "image/png",
                 "contentString": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..."
               }
             ]
           }
@timothycarambat commented on GitHub (Mar 24, 2025): `/v1/workspace/:slug/chat` **and** `/v1/workspace/:slug/thread/:threadSlug/chat` both already support this. Just check the API docs on your instance to see this in the example in the Swagger docs example request ```json { "message": "What is AnythingLLM?", "mode": "query | chat", "sessionId": "identifier-to-partition-chats-by-external-id", "attachments": [ { "name": "my-image.png", "mime": "image/png", "contentString": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." } ] } ```
Author
Owner

@genhung commented on GitHub (Mar 26, 2025):

Thank you very much.
I am using /v1/workspace/:slug/thread/:threadSlug/chat and attaching a base64-encoded PNG.

I can monitor the message and its response in the thread on the AnythingLLM UI, but the image does not appear at all.

Am I misunderstanding something or doing something wrong?

@genhung commented on GitHub (Mar 26, 2025): Thank you very much. I am using /v1/workspace/:slug/thread/:threadSlug/chat and attaching a base64-encoded PNG. I can monitor the message and its response in the thread on the AnythingLLM UI, but the image does not appear at all. Am I misunderstanding something or doing something wrong?
Author
Owner

@timothycarambat commented on GitHub (Mar 26, 2025):

Ah, i misunderstood the original issue, yes this is a bug/feat. You should be able to see attachment images you send via API to also render in the UI when not in a multi-user environment. PR: https://github.com/Mintplex-Labs/anything-llm/pull/3546

@timothycarambat commented on GitHub (Mar 26, 2025): Ah, i misunderstood the original issue, yes this is a bug/feat. You should be able to see attachment images you send via API to also render in the UI when not in a multi-user environment. PR: https://github.com/Mintplex-Labs/anything-llm/pull/3546
yindo changed title from [FEAT]: Upload Images to Workspace or Thread via API to [GH-ISSUE #3518] [FEAT]: Upload Images to Workspace or Thread via API 2026-06-05 14:45:33 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2271