cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Api v2 for filesGetThumbnail gives t.buffer not a function error

Api v2 for filesGetThumbnail gives t.buffer not a function error

NAPOLEON039
New member | Level 2
Go to solution

This is a question that has already been answered, but none of the solutions have worked for me.

         I am trying to upload an image using Python and view it using JavaScript. I'm using the Vue.js framework. The upload part happens splendidly with Python. It's the JavaScript part that is giving me some serious headache.

        The solutions to previous similar posts have not worked for me. I'm using the following code for fetching a thumbnail; the response doesn't log and instead shows this cryptic error:error.JPG

Here is my code:

dbox.filesGetThumbnail({path: 'relevant file path with .jpg extension'})
    .then(response => {
      console.log(response)
    })

Would appreciate some help :slight_smile:

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
It sounds like you're referring to the following threads:

https://github.com/dropbox/dropbox-sdk-js/issues/172
https://www.dropboxforum.com/t5/API-support/Thumbnails/m-p/263451

Did you try including the library as a JavaScript library instead of a Node dependency? Can you elaborate on how exactly the fixes failed for you?

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution
It sounds like you're referring to the following threads:

https://github.com/dropbox/dropbox-sdk-js/issues/172
https://www.dropboxforum.com/t5/API-support/Thumbnails/m-p/263451

Did you try including the library as a JavaScript library instead of a Node dependency? Can you elaborate on how exactly the fixes failed for you?

NAPOLEON039
New member | Level 2
Go to solution

Oh, looks like I missed that. It works now:grinning:. Thanks!!

Greg-DB
Dropbox Staff
Go to solution
The original `t.buffer is not a function` issue should be fixed in the latest version of the library, currently v4.0.3.
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    NAPOLEON039 New member | Level 2
What do Dropbox user levels mean?