Hi everyone,
I'm a bit new to this and am having difficult getting the dropbox chooser to work. Here is what is being inputted into the html:
<!doctype html>
<html>
<head>
<script type="text/javascript"src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="xxxxxx"></script>
</head>
<body>
<div id="container"></div>
<a id="link"></a>
<script>
var button = Dropbox.createChooseButton({
success: function(files) {
var linkTag = document.getElementById('link');
linkTag.href = files[0].link;
linkTag.textContent = files[0].link;
},
linkType: 'preview',
multiselect: true
});
document.getElementById('container').appendChild(button);
</script>
</body>
</html>
Everything works except it is not returning a preview link for one or multiple pictures I have selected. The only thing that happens is a green check mark appears. Would any happen to know how to get the preview links to appear? Thank you for taking the time to respond.