Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Hommy-master
capcut-mate
Repository navigation
Code
Issues
6
(6)
Pull requests
4
(4)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
More
items
Releases
v8.1.25
[v8.1.25] 文件上传接口升级为流式中继
Latest
Latest
Compare
Choose a tag to compare
Sorry, something went wrong.
Filter
Loading
Sorry, something went wrong.
Uh oh!
There was an error while loading.
Please reload this page
.
No results found
Hommy-master
released this
03 Dec 09:18
v8.1.25
2c9508f
🚀 新增功能
文件上传改为流式中继:服务端边接收边将文件分片直传对象存储,不再写入本地临时目录。
支持 COS、OSS、TOS 三种对象存储,沿用原有的存储选择优先级与配置方式。
新增对截断或不完整 multipart 请求的拒绝校验,避免不完整文件进入对象存储。
🔧 功能优化
客户端无需任何改动:请求字段(file、apiKey)、响应结构、已文档化的错误码与计费规则均保持不变。
单文件 500MB 限制改为按实际接收字节数校验,缺少 Content-Length 的分块传输请求同样生效。
新增上传并发控制与内存上限,避免并发大文件上传导致内存占用失控。
校验失败时自动取消未完成的分片上传,避免对象存储中残留分片。
🛠️ 问题修复
修复上传请求在进入业务逻辑前被整体写入服务端临时目录、可能耗尽磁盘空间的问题。
修复分块传输请求可绕过 Content-Length 体积前置拦截的问题。
修复上传接口在体积上限控制上的实际生效范围,确保超限文件在接收过程中即被中断。
✅ 兼容性说明
接口路径、请求格式、响应字段、业务错误码和计费方式均未变化,现有客户端可直接使用。
上传成功后返回的签名下载 URL 有效期与原有逻辑一致。
对象存储密钥仍仅保留在服务端,不会下发给客户端。
🧪 测试验证
补充上传接口单元测试,覆盖正常上传、多分片、分块传输、超限、校验失败及存储异常等场景。
完成端到端验证,确认普通上传、分块上传和错误场景行为符合预期。
You can’t perform that action at this time.