MCPcopy Create free account
hub / github.com/bailicangdu/node-elm / uptoken

Method uptoken

prototype/baseComponent.js:182–185  ·  view source on GitHub ↗
(bucket, key)

Source from the content-addressed store, hash-verified

180 })
181 }
182 uptoken(bucket, key){
183 var putPolicy = new qiniu.rs.PutPolicy(bucket+":"+key);
184 return putPolicy.token();
185 }
186 uploadFile(uptoken, key, localFile){
187 return new Promise((resolve, reject) => {
188 var extra = new qiniu.io.PutExtra();

Callers 1

qiniuMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected