Write the upload file code and report an error: invalid putpolicy options according to Qiniu Node.js SDK document

problem description

write the upload file code according to Qiniu Node.js SDK document and report an error: invalid putpolicy options

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

function uptoken(bucket, key) {
    var putPolicy = new qiniu.rs.PutPolicy(bucket+":"+key);
    return putPolicy.token();
}

what result do you expect? What is the error message actually seen?


putpolicy is specified by uploading token
check your token

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e56678-45398.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e56678-45398.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?