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: 

Use /get_thumbnail_v2 in <img> tag together with Dropbox-API-Path-Root

Use /get_thumbnail_v2 in <img> tag together with Dropbox-API-Path-Root

Adam B.39
Explorer | Level 4
Go to solution

Hey,

We've had an internal tool working fine for a few years. But we recently switched to the new team space experience. I managed to sort the file listing and everything out by setting the headers `Dropbox-API-Path-Root` and `Dropbox-API-Select-User`.

 

But previously we were able to use the `/2/files/get_thumbnail_v2` endpoint together with the `authorization` query parameter directly on a <img> tag in the browser. But now it no longer works, because I can't find a way to set `Dropbox-API-Path-Root` and `Dropbox-API-Select-User` as query parameters. As far as I understand it they can only be set as headers. When creating `<img>` tags I can't set headers.

 

Any idea if it is possible to pass the path root and user as query parameters? Or if I'm doing something wrong?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

There are also 'path_root' and 'select_user' URL parameters for those headers, respectively. They work like the 'authorization' header, in that the value would be the same value as passed to the corresponding header, plus the necessary URL encoding.

 

These aren't officially documented, but I'll ask the team to document them.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

There are also 'path_root' and 'select_user' URL parameters for those headers, respectively. They work like the 'authorization' header, in that the value would be the same value as passed to the corresponding header, plus the necessary URL encoding.

 

These aren't officially documented, but I'll ask the team to document them.

Adam B.39
Explorer | Level 4
Go to solution

Thanks for the quick reply! Works like a charm.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Adam B.39 Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?