如题,在上传资源时如何设定资源的生命周期?
uploadImg() {
var config = {
useCdnDomain: true,
region: Qiniu.region.z2
};
var putExtra = {
fname: "test",
params: {},
mimeType: [] || null
};
var observable = Qiniu.upload(this.state.imgBlob, this.state.qnKey, this.state.qnToken, putExtra, config)
}
在putpolicy中指定
即在token中指定 deleteafterdays