From b2e17867bc018075d78494805b8005eff4bcf705 Mon Sep 17 00:00:00 2001 From: Cong Liu Date: Wed, 14 Aug 2019 15:01:01 +0800 Subject: [PATCH] enabled `forceSaveKey` option See https://developer.qiniu.com/kodo/manual/1206/put-policy#forcesaveKey --- qiniu/storage/rs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qiniu/storage/rs.js b/qiniu/storage/rs.js index 51e7c2fe..a2f8604c 100644 --- a/qiniu/storage/rs.js +++ b/qiniu/storage/rs.js @@ -1286,6 +1286,7 @@ function PutPolicy(options) { this.expires = options.expires || 3600; this.insertOnly = options.insertOnly || null; + this.forceSaveKey = options.forceSaveKey || null; this.saveKey = options.saveKey || null; this.endUser = options.endUser || null; @@ -1313,7 +1314,7 @@ function PutPolicy(options) { PutPolicy.prototype.getFlags = function() { var flags = {}; - var attrs = ['scope', 'isPrefixalScope', 'insertOnly', 'saveKey', 'endUser', + var attrs = ['scope', 'isPrefixalScope', 'insertOnly', 'forceSaveKey', 'saveKey', 'endUser', 'returnUrl', 'returnBody', 'callbackUrl', 'callbackHost', 'callbackBody', 'callbackBodyType', 'callbackFetchKey', 'persistentOps', 'persistentNotifyUrl', 'persistentPipeline', 'fsizeLimit', 'fsizeMin',