cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more 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: 

get_thumbnail_v2 returning invalid thumbnail

get_thumbnail_v2 returning invalid thumbnail

pparkar
Helpful | Level 5
Go to solution

We are using 'https://content.dropboxapi.com/2/files/get_thumbnail_v2' api to fetch thumbnails of varying size  'w128h128' and 'w1024h768' . However we receive the thumbnail of size 128x128 in both the cases.

 

Please the request/response attached. The only thing varying in the response header is ,

1. 128x128 has following response header,

Vary: Dropbox-API-Arg, Authorization

2. 1024x768 has the following in response header,

Vary: Dropbox-API-Arg, Authorization, Accept-Encoding

 

This is something that dropbox controls, because of which we get a cached thumbnail not respecting the size request in the 'Dropbox-API-Arg' . 

 

Can someone please provide more insight on how to fix this?Is there anything in the API request that can be set so we get the appropriate thumbnail?  Also, we see this behavior on certain images, so its not consistent across different images [one such image is attached]

orange.jpeg request-1request-1response-1response-1request-2request-2response-2response-2

1 Accepted Solution

Accepted Solutions

pparkar
Helpful | Level 5
Go to solution

Thanks Greg-DB! Using post works for us.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

Thanks for sharing this! It looks like this is due to how we set the "Etag" value on these responses, causing the browser to cache the result. We'll look into it, but in the meantime, the easiest way to work around this client-side may be to use a POST instead of a GET, as that should avoid the caching anyway.

pparkar
Helpful | Level 5
Go to solution

Thanks Greg-DB! Using post works for us.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    pparkar Helpful | Level 5
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?