[功能建议] 将 Google Drive 插件的单文件交接上限提升至至少 1 GiB
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: lutianshu
**客户端版本**: 0.1.45
---
## 使用场景
通过 Cindy 的 Google Drive 插件,将游戏美术生产中的大型 PSD / PSB 素材归档或共享到指定 Drive 目录。此类源文件通常包含大量图层和高分辨率资源,单文件体积经常达到数百 MiB,部分会超过 1 GiB。
## 当前痛点
Google Drive 插件当前的本地文件交接上限为 52,428,800 字节(50 MiB)。文件超过该限制时,会在上传前的宿主交接阶段直接失败,因此无法使用插件完成常见的大型 PSD / PSB 素材归档。
目前只能绕开 Cindy,改用浏览器或 Google Drive 桌面客户端手动上传,无法接入自动扫描、按目录路由、同名替换、上传后验证和本地安全清理等自动化流程。
## 诉求
- 单文件交接能力至少支持 1 GiB。
- 大文件上传失败时保留清晰的错误信息,不影响原有小文件上传能力。
- 如宿主交接层与 Google Drive 上传层存在不同限制,希望分别说明或统一处理。
## 建议方案
更理想的实现是使用分片、可续传或流式交接/上传,避免将整个大文件一次性载入内存,并为未来更大的 PSB 文件留出空间。
建议优先覆盖 PSD、PSB 等非媒体大文件,但能力最好适用于所有需要归档或共享的大型文件格式。
## 脱敏诊断摘要
用户已同意公开以下脱敏信息:
- 测试文件大小:273,394,031 字节(约 260.7 MiB)
- 当前限制:52,428,800 字节(50 MiB)
- 错误类型:`DIR_INVALID`
- 失败阶段:Google Drive 上传开始前的本地文件交接阶段
- 未包含账号、邮箱、本地路径、素材名称、令牌或其他私有内容。
---
**版本区域**: CN
**OS**: win32 x64 (10.0.19045)
**界面语言**: zh-CN
Contributor guide
Research direction
Start by locating the Google Drive plugin and the host handoff code that enforces the 52,428,800-byte limit, then trace the upload path and any related tests. Done means files of at least 1 GiB can be handed off and uploaded without loading the whole file at once, while small-file uploads remain compatible and failures retain clear error information.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100