Hi, all
I'm trying download files from my Dropbox using SDK Javascript, but I can't. I'm calling this code from my button html, but nothing happen. Don't show error message or something. I readed about the "filesDownload" documentation and apparently is the same code for upload files (that I founded to upload files with SDK Javascript)
This is my code
function downloadFile() {
var ACCESS_TOKEN = ""; // Here the access token key
var dbx = new Dropbox({ accessToken: ACCESS_TOKEN });
dbx.filesDownload({ path: '/5. Productos de las LGAC/Estudiantes/Generación 2018-2020/Artículos/Ricardo-Derechos.pdf'})
.then(function(response){
var results = document.getElementById('results');
results.appendChild(document.createTextNode('File Downloaded!'));
console.log(response);
})
.catch(function (error) {
console.error(error);
});
return false;
}If somebody can help me to find out the problem, will be very appreciated
Regards