Skip to content

[Bug] Desktop: dropping an image onto the window is rejected, though chat accepts image attachments #7963

Closed

Description

@LeoBorcherding

Dragging a PNG or JPG onto the desktop window is refused with "Supported files: .pdf,.txt,.md,.markdown,.docx,.html,.htm, or a single .gguf model", even though the composer accepts image attachments for vision models.

The drop classifier derives its whitelist from the RAG upload list, studio/frontend/src/features/rag/types/rag.ts:80:

export const RAG_UPLOAD_ACCEPT = ".pdf,.txt,.md,.markdown,.docx,.html,.htm";

drop-paths.ts:6 reuses that for DOC_EXTS, so image types were never in scope. #7668 added document drops the same way and images were simply not part of it.

Fix: give the drop classifier its own image extension set routed to the attachment path, rather than widening RAG_UPLOAD_ACCEPT, which would also change what the knowledge-base uploader accepts.

Activity

  1. added 2 commits that reference this issue on Aug 7, 2026
    d1aba31
    c51b98d
  2. added a commit that references this issue on Aug 8, 2026
    f8497dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions