Add Kingsoft Cloud object storage policy to solve the cross-domain and friendly file name incompatibility problem of s3 compatible storage policy. (#2665)
* 新增金山云对象存储策略,解决s3兼容存储策略的跨域及友好文件名不兼容问题 * fix bug&add download Expire time args * Handling of expiration times when they may be empty
This commit is contained in:
@@ -492,6 +492,12 @@ func initMasterRouter(dep dependency.Dep) *gin.Engine {
|
||||
middleware.UseUploadSession(types.PolicyTypeS3),
|
||||
controllers.ProcessCallback(http.StatusBadRequest, false),
|
||||
)
|
||||
// 金山 ks3策略上传回调
|
||||
callback.GET(
|
||||
"ks3/:sessionID/:key",
|
||||
middleware.UseUploadSession(types.PolicyTypeKs3),
|
||||
controllers.ProcessCallback(http.StatusBadRequest, false),
|
||||
)
|
||||
// Huawei OBS upload callback
|
||||
callback.POST(
|
||||
"obs/:sessionID/:key",
|
||||
|
||||
Reference in New Issue
Block a user