Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some put policy fields #426

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading