Skip to content

Commit 31d0ea2

Browse files
author
rp
committed
add insertOnly and fsizeLimit params for UploadToken
1 parent e1c82ad commit 31d0ea2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qiniu/rs.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ PutPolicy.prototype.getFlags = function(putPolicy) {
196196
flags['fopTimeout'] = this.fopTimeout;
197197
}
198198
flags['deadline'] = this.expires + Math.floor(Date.now() / 1000);
199+
if (this.fsizeLimit != null) {
200+
flags['fsizeLimit'] = this.fsizeLimit;
201+
}
202+
if (this.insertOnly != null) {
203+
flags['insertOnly'] = this.insertOnly;
204+
}
199205
return flags;
200206
}
201207

0 commit comments

Comments
 (0)