fix(upload): 分片改 POST 并放宽 Nginx 反代,避免 PUT 大 body 断连

- 管理端分片请求改为 POST;后端同时保留 PUT
- /api/ 增加 proxy_request_buffering off;CORS Allow-Headers 略扩展

Made-with: Cursor
This commit is contained in:
whm
2026-04-13 15:09:31 +08:00
parent 0800982224
commit cce3d158d5
6 changed files with 8 additions and 3 deletions

View File

@@ -215,7 +215,7 @@ func MultipartUploadStatus(c *gin.Context) {
})
}
// PutMultipartChunk 上传单个分片(二进制 body长度须与分片大小一致
// PutMultipartChunk 上传单个分片(二进制 body长度须与分片大小一致。路由同时注册 POST 与 PUT建议客户端用 POST。
func PutMultipartChunk(c *gin.Context) {
siteID := c.Param("site_id")
uploadID := c.Param("upload_id")