feat(attachments): support local files and video attachments (#6321)
* feat(attachments): support local files and video attachments Share gateway inspection and send validation for borrowed local paths while preserving binary uploads, original-file ownership, and existing limits. Related to NAN-284. Native provider video input remains outside this change. * test: make cross-platform verification fixtures self-contained * test(webui): align typed fixtures with runtime contracts * fix(webui): preserve uploaded video playback during history sync * test(tui): preserve local attachment drafts across resizes * perf(attachments): preserve upload caches and release video previews * docs(webui): keep attachment guidance user-focused * chore: remove redundant dependency comment * test(providers): make stream idle renewal timing deterministic * fix(attachments): keep upload byte limits out of local references Validate common format/count rules separately from upload byte budgets. Keep local inspection and send-time checks metadata-only, and exclude local references from composer and pending-upload totals. Explain upload size rejections with actual size and maximum in all ten locales. Related to NAN-284. * fix(attachments): retain image references and draft order * fix(attachments): close local reference UX and authorization gaps * fix(attachments): preserve focus during asynchronous path confirmation
This commit is contained in:
1 parent
7dfeff9ddf
commit
254f94b068
65 files changed
+1816
-292
No files matched your search
@@ -2306,10 +2306,11 @@
|
||||
"unsupported_type": "不支持的文件类型",
|
||||
"empty_file": "不能附加空文件",
|
||||
"too_many_attachments": "每条消息最多 {{max}} 个附件",
|
||||
"too_many_videos": "每条消息最多 1 个视频",
|
||||
"too_many_images": "每条消息最多 {{max}} 张图片",
|
||||
"magic_mismatch": "文件看起来不像真实的图片",
|
||||
"decode_failed": "无法解码这张图片",
|
||||
"too_large": "文件太大,请换一个小一点的",
|
||||
"too_large": "文件为 {{size}},超过上传上限 {{max}}",
|
||||
"total_too_large": "附件总大小过大,请移除部分文件或使用更小的文件",
|
||||
"io": "无法读取该文件"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user