Home  >  Article  >  Backend Development  >  javascript - I don’t understand Qiniu’s upload,,, various problems

javascript - I don’t understand Qiniu’s upload,,, various problems

WBOY
WBOYOriginal
2016-12-01 00:25:291056browse

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

javascript - I don’t understand Qiniu’s upload,,, various problems

Reply content:

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

javascript - I don’t understand Qiniu’s upload,,, various problems

Try it

<code>             // init中添加如下代码
          init:{  
            'Key': function(up, file) {
                // 若想在前端对每个文件的key进行个性化处理,可以配置该函数
                // 该配置必须要在 unique_names: false , save_key: false 时才生效

                // do something with key here
                return key;
            }
          }</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn