Skip to content

Commit 9a54299

Browse files
committed
Merge pull request #150 from liangchao07115/feature/add_fsizeMin-xiatian-1104
putPolicy add fsizeMin
2 parents 86282e3 + 6357b9c commit 9a54299

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiniu/rs.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ function PutPolicy2(putPolicyObj) {
209209

210210
this.fsizeLimit = putPolicyObj.fsizeLimit || null;
211211

212+
this.fsizeMin = putPolicyObj.fsizeMin || null;
213+
212214
this.detectMime = putPolicyObj.detectMime || null;
213215

214216
this.mimeLimit = putPolicyObj.mimeLimit || null;
@@ -228,7 +230,7 @@ PutPolicy2.prototype.token = function(mac) {
228230

229231
PutPolicy2.prototype.getFlags = function() {
230232
var flags = {};
231-
var attrs = ['scope', 'insertOnly', 'saveKey', 'endUser', 'returnUrl', 'returnBody', 'callbackUrl', 'callbackHost', 'callbackBody', 'callbackBodyType', 'callbackFetchKey', 'persistentOps', 'persistentNotifyUrl', 'persistentPipeline', 'fsizeLimit', 'detectMime', 'mimeLimit'];
233+
var attrs = ['scope', 'insertOnly', 'saveKey', 'endUser', 'returnUrl', 'returnBody', 'callbackUrl', 'callbackHost', 'callbackBody', 'callbackBodyType', 'callbackFetchKey', 'persistentOps', 'persistentNotifyUrl', 'persistentPipeline', 'fsizeLimit','fsizeMin', 'detectMime', 'mimeLimit'];
232234

233235
for (var i = attrs.length - 1; i >= 0; i--) {
234236
if (this[attrs[i]] !== null) {

0 commit comments

Comments
 (0)