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

WBOY
Release: 2023-03-01 16:12:01
Original
1068 people have browsed it

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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template