Skip to content

Web 端无法上传文件和图片:附件按钮无效 + 拖拽被禁用 #2375

@jaluova

Description

@jaluova

环境

  • Reasonix Code Web 版mode=server mode="attached"
  • 浏览器:Chrome

复现步骤

  1. 在浏览器中打开 Reasonix Code Web 界面
  2. 尝试点击附件/文件按钮选择文件上传
  3. 尝试拖拽图片/文件到聊天窗口
  4. 尝试在输入框用 @ 搜索文件

实际结果

三个途径全部失败:

操作 表现 控制台证据
拖拽文件到窗口 无任何反应 [tauri-bridge] onDragDropEvent (no-op in web)
点击附件按钮选择文件 文件对话框能弹出,但选择后无反应 dialog open 多次触发,但后续无上传动作
@ 搜索文件 无结果 /api/files/search?q=&nonce=1405 Method Not Allowed

预期结果

  • 拖拽文件到窗口应该触发上传
  • 点击附件按钮选择文件后应正常上传并插入对话
  • @ 搜索文件应返回项目文件列表

关键日志

[tauri-bridge] onDragDropEvent (no-op in web)
[tauri-bridge] dialog open: {multiple: false, directory: false, defaultPath: '/Users/xxx', filters: Array(1)}
/api/files/search?q=&nonce=1  Failed to load resource: the server responded with a status of 405 (Method Not Allowed)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingv1Legacy TypeScript line (0.x) — v1 branch, maintenance only

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions