Forum Discussion

NAPOLEON039's avatar
NAPOLEON039
New member | Level 2
8 years ago
Solved

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

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:

Here is my code:

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

Would appreciate some help :slight_smile: