Skip to content

Commit a216f03

Browse files
authored
Merge pull request #379 from huangzilong/master
fix: add forceSaveKey for policy
2 parents c90a1e0 + cdd3020 commit a216f03

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

qiniu/storage/rs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,7 @@ function PutPolicy (options) {
994994
this.insertOnly = options.insertOnly || null;
995995

996996
this.saveKey = options.saveKey || null;
997+
this.forceSaveKey = options.forceSaveKey || null;
997998
this.endUser = options.endUser || null;
998999

9991000
this.returnUrl = options.returnUrl || null;
@@ -1020,8 +1021,8 @@ function PutPolicy (options) {
10201021

10211022
PutPolicy.prototype.getFlags = function () {
10221023
var flags = {};
1023-
var attrs = ['scope', 'isPrefixalScope', 'insertOnly', 'saveKey', 'endUser',
1024-
'returnUrl', 'returnBody', 'callbackUrl', 'callbackHost',
1024+
var attrs = ['scope', 'isPrefixalScope', 'insertOnly', 'saveKey', 'forceSaveKey',
1025+
'endUser', 'returnUrl', 'returnBody', 'callbackUrl', 'callbackHost',
10251026
'callbackBody', 'callbackBodyType', 'callbackFetchKey', 'persistentOps',
10261027
'persistentNotifyUrl', 'persistentPipeline', 'fsizeLimit', 'fsizeMin',
10271028
'detectMime', 'mimeLimit', 'deleteAfterDays', 'fileType'

0 commit comments

Comments
 (0)