Skip to content

Commit ef7cf92

Browse files
authored
upload policy add transform (#124)
1 parent 5b2627e commit ef7cf92

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

storage/token.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,15 @@ type PutPolicy struct {
117117

118118
// 上传单链接限速,单位:bit/s;范围:819200 - 838860800(即800Kb/s - 800Mb/s),如果超出该范围将返回 400 错误
119119
TrafficLimit uint64 `json:"trafficLimit,omitempty"`
120+
121+
// 同步转码命令,不推荐使用
122+
Transform string `json:"transform,omitempty"`
123+
124+
// 同步转码降级模式,不推荐使用。 缺省: 不降级 (默认); ORIGIN 保存原始内容;
125+
TransformFallbackMode string `json:"transformFallbackMode,omitempty"`
126+
127+
// 同步转码降级 Key,不推荐使用。 transformFallbackMode 为 ORIGIN 时必填。
128+
TransformFallbackKey string `json:"transformFallbackKey,omitempty"`
120129
}
121130

122131
// UploadToken 方法用来进行上传凭证的生成

0 commit comments

Comments
 (0)