Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

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

Fileblob not visible with latest version of dropbox api #809

I try to download an image from my dropbox account using the filesDownload method in my vue.js application. But when I try to get the result it does not show me the option to get fileBlob only some metainformation. But I want to download the image directly to a project folder. This is my code with which I try to download it.

 

getImages() {
      const fs = require('fs');
      const Dropbox = require("dropbox").Dropbox;
      let pictures2 = [];
      const dbx = new Dropbox({
        accessToken: '<REDACTED>'
      });
      dbx.filesDownload({
      path: "/test/road-6576857_1920.jpg"
      }).then(function(data) {
        fs.writeFile(data.result.name, data.result.fileBlob, 'binary', (err) => {
        console.log(data.result)
        )},
      )}
      )}
  }

I am using the latest dropbox sdk right now being 10.2.0 here is the github post for cross referencing:

https://github.com/dropbox/dropbox-sdk-js/issues/809

1 Reply

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    5 years ago

    I'll follow up with you on your GitHub issue. For future reference, note that you don't need to post on both the forum and GitHub repo. Either is fine.

     

    Also, as noted in an earlier thread, you should not post your access token. I've redacted it from your posts, but you should make sure you revoke it for the sake of your security.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!