Hello,
I'm really new to working with the dropbox API and was completely lost on how to retrieve file names. My main goal is to just have a list of the files' names that are uploaded to Dropbox display on my website as simple text. I've tried using the chooser that was in the documentation but I can't seem to get the file names. I just get the popup window (and no alert). So far this is the only code I have. I'm genuinely lost on this. Any help would be great
<script>
options = {
success: function(files) {
console.log(files[0].name);
alert("Here's the file link: " + files[0].link);
},
cancel: function() {
linkType: "direct",
multiselect: false,
folderselect: false,
sizeLimit: 1024,
};
Dropbox.choose(options);
</script>