We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
LewisO
4 months agoHelpful | Level 5
Implementing Dropbox features in a custom file explorer: API limitations for desktop apps?
I'm developing a desktop application as an alternative to Windows Explorer / macOS Finder and want to integrate the following Dropbox features: 1. Reading thumbnails for images and other supported f...
- 4 months ago
No, Dropbox does not offer a way to programmatically retrieve thumbnails locally without having the user authorize the app to access their content via the Dropbox API.
Greg-DB
4 months agoDropbox Staff
As Здравко said, the Dropbox API can be used by any app that can make HTTPS connections, whether that's a desktop app, web app, or something else.
For a desktop app, you can interact with the data in the local Dropbox folder, and/or use the Dropbox API as desired.
If you want to programmatically find the local Dropbox folder, check out this help article.
For information on using the Dropbox API, check out the information here. To address each of the pieces of functionality you mentioned in particular, using the API:
- To get thumbnails, you can use the /2/files/get_thumbnail_v2 or /2/files/get_thumbnail_batch endpoints.
- Dropbox doesn't offer functionality for checking or setting selective sync statuses or settings, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
- To create shared links, you can use /2/sharing/create_shared_link_with_settings.
- LewisO4 months agoHelpful | Level 5
Здравко Greg-DB Thank you for your replies.
I understand that desktop applications can also use the API by http calls, to clarify, I want to know if the following are the only ways to get thumbnails(and other features), despite my software having full access to the local Dropbox folder:
1. register my app in dropbox app console
2. when users want to visit the local dropbox folder in my application, I need to proactively inform and get manual approvals from users to acquire dropbox API auth token via OAuth
3. for all the local image files displayed within my software, request the thumbnails via Dropbox API
Other than the above procedures, there is no other direct way to get the thumbnails, despite the software already having full access to local disks, is this correct?
- Здравко4 months agoLegendary | Level 20
LewisO wrote:...
Other than the above procedures, there is no other direct way to get the thumbnails, despite the software already having full access to local disks, is this correct?
Hi LewisO,
In your question exists some ambiguity. Do you want just access to the local Dropbox folder (consequences don't matter) or you want to get thumbnails while preserving online/offline status? 🤔 Your question formulation doesn't clarify this.
If you want just access (i.e. information where Dropbox folder resides in and how is its exact name), following Greg links above you will know that such information could be found for Windows using information in file %LOCALAPPDATA%\Dropbox\info.json. There is information about the account type and folder placement as well as some other details. Maybe here is the place to mention that there are some small mistakes in JSON formatting that's good idea to be fixed - I believe Greg will forward this to the employees engaged with documentation. I believe too that you will be able see them. Even more the exact file is accessible to you on your machine where you can see what's there (exact/correct format). In such a way you don't need to register anything and just access the files there as you would do for any other local file. You should keep in mind that the files did access in such a way may change their status from online only to available offline - something that may not be desirable. It's up to you, is that something that you want (design decision).
You may access thumbnails online - something that will avoid local access to the files themself, so avoid any sync status change (guaranteed). In this case you will need to register your application and ask the user for granting access to the data (despite you have already access to user local data, that doesn't give your application automatically access to the data online "mirror"). Once you have such access granted, you may ask for desired file thumbnail. And all other files information too. You should keep in mind that Dropbox path is POSIX style absolute path with components matching to all folders (and at the end file name with extension) that reside inside local Dropbox folder, but nothing outside the local Dropbox folder (including Dropbox folder itself get out from that list). For team accounts you may need to change the root namespace (usually by default users home folder), to actual account root. Skipping this may lead to inaccessible files/folders (incorrect paths to them).
On Linux and Mac JSON files are placed on ~/.dropbox/info.json.
Hope this sheds some additional light.
- Greg-DB4 months agoDropbox Staff
Yes, as Здравко said, if you want to just access the file data locally, you can do so without using the API. If you want to have Dropbox generate thumbnails for you though, you'd need to use the API/OAuth flow.
And yes, it looks like there are some formatting issues in that help center article, so I'll ask the team to fix that up. Thanks!
- LewisO4 months agoHelpful | Level 5
Здравко Greg-DB Thank you for your replies, I think I can do better explanations. Like Windows explorer and mac finder, my file browser also displays files in a grid layout with thumbnails representing each file. When users are visiting the dropbox folder in my file browser, ideally, I would like to display small image thumbnails for image files. Although I can create thumbnails by analyzing the image files themselves, this can be time-consuming and take system resources, and it will trigger dropbox to sync down the files set to online-only by users, which isn't ideal. Since dropbox already generates thumbnails for such images and can display the thumbnails properly in windows explorer, I am wondering if my app can do the same - requesting existing thumbnails from Dropbox API(without analyzing the file and generating the thumbnail on my side), and without asking users to authorize via OAuth. This means, are there ways to acquire thumbnails available locally? (not by requesting from online file mirrors)
I hope my question is clear enough this time. Thank you all in advance.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!