🎨 Display a confirmation prompt when inserting large assets 256MB https://github.com/siyuan-note/siyuan/issues/16685

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-01-08 11:53:44 +08:00
parent bbfe30d629
commit b93b8c039d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -33,9 +33,6 @@ func readFilePaths(c *gin.Context) {
if !gulu.OS.IsLinux() { // Linux 端不再支持 `粘贴为纯文本` 时处理文件绝对路径 https://github.com/siyuan-note/siyuan/issues/5825
paths, _ = clipboard.ReadFilePaths()
}
if 1 > len(paths) {
paths = []string{}
}
data := map[string]map[string]any{}
for _, path := range paths {