Skip to content

Commit af15de5

Browse files
committed
add some deprecated PutPolicy fields
1 parent 7c25d03 commit af15de5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
2-
## 7.13.1(2024-02-04
2+
## 7.13.1(2024-02-21
33
* 对象存储,修复上传部分配置项的兼容
4+
* 对象存储,添加上传策略部分字段
45

56
## 7.13.0(2023-12-11)
67
* 对象存储,新增支持归档直读存储

qiniu/auth.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
# 上传策略,参数规格详见
1313
# https://developer.qiniu.com/kodo/manual/1206/put-policy
14-
_policy_fields = set([
14+
_policy_fields = {
1515
'callbackUrl', # 回调URL
1616
'callbackBody', # 回调Body
1717
'callbackHost', # 回调URL指定的Host
@@ -38,7 +38,11 @@
3838
'deleteAfterDays', # 文件多少天后自动删除
3939
'fileType', # 文件的存储类型,0为标准存储,1为低频存储,2为归档存储,3为深度归档存储,4为归档直读存储
4040
'isPrefixalScope' # 指定上传文件必须使用的前缀
41-
])
41+
42+
'transform', # deprecated
43+
'transformFallbackKey', # deprecated
44+
'transformFallbackMode' # deprecated
45+
}
4246

4347

4448
class Auth(object):

0 commit comments

Comments
 (0)