Skip to content

Desktop: dragging files into chat pastes the filesystem path instead of attaching #6933

Description

@Muammer06

Problem

On Linux (WebKitGTK) — and likely other Tauri webviews — dragging a photo or file from the file manager into the message composer inserts the filesystem path as chat text (/home/…/photo.png) instead of attaching/uploading the file.

Paperclip picker and clipboard paste of images still work. Drop is the broken path.

Why

tauri.conf.json has dragDropEnabled: false, so OS drops go to the webview. The composer form has HTML5 onDrop that only reads dataTransfer.files.

Linux WebKitGTK often:

  1. Leaves dataTransfer.files empty
  2. Puts file://… / an absolute path in text/uri-list or text/plain
  3. Lets ProseMirror handle the drop first (editorProps.handleDrop is unset), which inserts that path as text

The window-level handler only preventDefaults when types includes Files, so text/uri-list drops are not claimed.

Expected

Dropping a JPEG/PNG/PDF/etc. onto the composer (or forum composer) should attach it the same way as the paperclip button — upload overlay, then send with the message.

Environment

  • Buzz Desktop (self-hosted relay)
  • Linux
  • Drop from the file manager onto the chat input

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