Skip to content

Commit dea0582

Browse files
committed
Merge pull request #118 from ahan/insertOnly_fsizeLimit_params
add insertOnly and fsizeLimit params for UploadToken
2 parents c4d68c2 + 31d0ea2 commit dea0582

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
@@ -203,6 +203,12 @@ PutPolicy.prototype.getFlags = function(putPolicy) {
203203
flags['saveKey'] = this.saveKey;
204204
}
205205
flags['deadline'] = this.expires + Math.floor(Date.now() / 1000);
206+
if (this.fsizeLimit != null) {
207+
flags['fsizeLimit'] = this.fsizeLimit;
208+
}
209+
if (this.insertOnly != null) {
210+
flags['insertOnly'] = this.insertOnly;
211+
}
206212
return flags;
207213
}
208214

0 commit comments

Comments
 (0)