You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Adam B.39
2 years agoExplorer | Level 4
Use /get_thumbnail_v2 in <img> tag together with Dropbox-API-Path-Root
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?
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.
- Greg-DBDropbox Staff
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.39Explorer | Level 4
Thanks for the quick reply! Works like a charm.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 4 hours agoIf 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 or Facebook.
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!