Skip to content

Commit

Permalink
add some put policy fields (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihsai0 authored Mar 12, 2024
1 parent 96971af commit 88952a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
QINIU_TEST_BUCKET: ${{ secrets.QINIU_TEST_BUCKET }}
QINIU_TEST_DOMAIN: ${{ secrets.QINIU_TEST_DOMAIN }}

- name: Print mock servion log
- name: Print mock server log
if: ${{ failure() }}
run: |
cat phpd.log
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 7.12.1 (2024-02-21)
* 对象存储,添加上传策略部分字段

## 7.12.0 (2023-12-11)
* 对象存储,支持归档直读存储
* 对象存储,批量操作支持自动查询 rs 服务域名
Expand Down
4 changes: 4 additions & 0 deletions src/Qiniu/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/Qiniu/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 分块上传块大小,该参数为接口规格,不能修改

Expand Down

0 comments on commit 88952a6

Please sign in to comment.