Files
mnote/bugs/04-tree-domain/process/4-49-filetree-drag-upload-target-parent-folder-v1.md
T
lix-2026 5f97800489 chore: align local-first control plane and editor fixes
- wire SQLite control-plane access/session paths into Rust web local-folder routes

- preserve local Markdown attachment semantics across upload, reload, and secondary-pane resource tabs

- refresh design governance docs, Reasonix task templates, and bug records

- retire root .mcp.json local MCP config
2026-05-23 23:38:42 +08:00

39 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 4-49 [process][bug] 文件树拖拽上传文件落到同级而非目标文件夹下 v1
> 发现时间:2026-05-23
>
> 状态:`[process]`
>
> 关联主线:`04-tree-domain`
## 1. 用户可见症状
原始记录:
```text
我的空间:向文件树中拖动文件上传文件,能正常在主编辑 md 中显示,点击也能正常打开,但是见 /mnt/Data1T/mnote/tmp/image copy 65.png,文件是和主文件夹同级(应该在我的文件夹下级)。
```
## 2. 初步判断
这是文件树拖拽上传目标解析问题,不是附件点击打开问题:
- 上传后的附件块能正常插入主编辑器。
- 点击附件能正常打开。
- 异常点是资源文件在文件树中的落点:实际落到主文件夹同级,而不是拖拽目标文件夹下级。
## 3. 待排查方向
- 文件树拖拽上传时的 target row / parent folder 是否正确写入 upload preflight。
- `local_folder/assets/upload` 或 upload target plan 是否丢失目标目录。
- 页面文件夹 / 当前页面资源归属和文件树手动目标目录之间是否存在优先级覆盖。
## 4. 验收建议
后续修复时应补 smoke
- 在文件树中创建一个目标文件夹。
- 将附件拖拽到该文件夹行。
- 断言附件在文件树中位于目标文件夹下级。
- 断言主编辑器附件块仍能点击在 tab 打开。