Home > Article > Backend Development > javascript - I don’t understand Qiniu’s upload,,, various problems
test/uptoken is the json format returned according to the document: {"uptoken":"xxxxxxxxxxxxx"} , right? ? ? Then, I specified saveKey when generating Qiniu token
test/uptoken is the json format returned according to the document: {"uptoken":"xxxxxxxxxxxxx"} , right? ? ? Then, I specified saveKey when generating Qiniu token
Try it
// init中添加如下代码
init:{
'Key': function(up, file) {
// 若想在前端对每个文件的key进行个性化处理,可以配置该函数
// 该配置必须要在 unique_names: false , save_key: false 时才生效
// do something with key here
return key;
}
}