Hi, when i try to get thumbnail for any file inside my folder i have the same error for different types os files (svg, png, ...)
import { Dropbox } from 'dropbox';
let dbx = new Dropbox({ accessToken: 'my-key' });
dbx.filesListFolder({path: '/vector'})
.then(function(response) {
console.log("file :" response.entries[0].path_display);
dbx.filesGetThumbnail({ path: response.entries[0].path_display })
.then(function(response) {
var fileUrl = URL.createObjectURL(response.fileBlob);
var img = document.createElement('img');
img.setAttribute('src', fileUrl);
document.getElementById('results').appendChild(img);
})
.catch(function(error) {
console.log(error);
});Every time have this error on console
file: /vector/carro_preview.png
my-file.ts:47 TypeError: t.buffer is not a function
at Dropbox-sdk.min.js:1
at Dropbox-sdk.min.js:1
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.js:4629)
at t.invoke (polyfills.js:3)
at r.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.js:4620)
at t.invokeTask (polyfills.js:3)