Skip to content

Commit

Permalink
add some deprecated PutPolicy fields
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 committed Feb 21, 2024
1 parent 7ef0c2f commit c496eb3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog
## 7.13.1(2024-02-04
## 7.13.1(2024-02-21
* 对象存储,修复上传部分配置项的兼容
* 对象存储,添加上传策略部分字段

## 7.13.0(2023-12-11)
* 对象存储,新增支持归档直读存储
Expand Down
8 changes: 6 additions & 2 deletions qiniu/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

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

'transform', # deprecated
'transformFallbackKey', # deprecated
'transformFallbackMode' # deprecated
}


class Auth(object):
Expand Down

0 comments on commit c496eb3

Please sign in to comment.