From ba9657de44ea14ab1406861b1352a96d95e0dbb9 Mon Sep 17 00:00:00 2001 From: lihsai0 Date: Wed, 21 Feb 2024 17:03:52 +0800 Subject: [PATCH] add some deprecated PutPolicy fields --- CHANGELOG.md | 3 +++ src/Qiniu/Auth.php | 4 ++++ src/Qiniu/Config.php | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f750eac..0501b5aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 7.12.1 (2024-02-21) +* 对象存储,添加上传策略部分字段 + ## 7.12.0 (2023-12-11) * 对象存储,支持归档直读存储 * 对象存储,批量操作支持自动查询 rs 服务域名 diff --git a/src/Qiniu/Auth.php b/src/Qiniu/Auth.php index d99c365c..347595e4 100644 --- a/src/Qiniu/Auth.php +++ b/src/Qiniu/Auth.php @@ -202,6 +202,10 @@ public function uploadToken($bucket, $key = null, $expires = 3600, $policy = nul 'deleteAfterDays', 'fileType', 'isPrefixalScope', + + 'transform', // deprecated + 'transformFallbackKey', // deprecated + 'transformFallbackMode', // deprecated ); private static function copyPolicy(&$policy, $originPolicy, $strictPolicy) diff --git a/src/Qiniu/Config.php b/src/Qiniu/Config.php index 75dfc949..e4d597e0 100644 --- a/src/Qiniu/Config.php +++ b/src/Qiniu/Config.php @@ -4,7 +4,7 @@ final class Config { - const SDK_VER = '7.12.0'; + const SDK_VER = '7.12.1'; const BLOCK_SIZE = 4194304; //4*1024*1024 分块上传块大小,该参数为接口规格,不能修改