You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

haso94's avatar
haso94
Explorer | Level 3
4 years ago

How to save pictures inside an array and then display

Hi,

 

In my vue application I am trying to download pictures from my dropbox account. So far I can get the metadata but I want to get the images and save them inside an array and then display them on my application. How could I do that? This is my code to download / get the information.

getImages() {
const Dropbox = require("dropbox").Dropbox;
let pictures2 = [];
const dbx = new Dropbox({
accessToken: 'ACCESS_TOKEN'
});
dbx.filesDownload({
path: "/test/road-6576857_1920.jpg"
}).then(function(response) {
console.log(response)
},
)}

 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 8 hours ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!