我已将 Dropbox 选择器添加到我的应用中,如下所示:
<script type="text/javascript" src="js/dropins.js" id="dropboxjs" data-app-key="my app key is here"></script>
$('#dropbox-choose').on('touchend', function(){
Dropbox.choose({
success: function(file){
console.log("Here's the file link:" + file[0].link)
},
cancel: function() {
},
linkType: "direct",
multiselect: false,
extensions: ['.pdf', '.doc', '.docx' , '.txt' , '.rtf' ,'.wps' , '.odt']
});
})
它会加载选择器,但我每次都会收到“错误”:“无效来源”
有任何想法吗?