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
TaylorKrusen
5 years agoDropbox Staff
Dropbox Extensions opens to all developers!
Dropbox Extensions are now open to all developers! It's a feature that can be added to your new or existing apps with Full Dropbox access, and is compatible with Dropbox API v2 and OAuth 2.0 flow. You can read more about Extensions in our developer blog or the Extensions Guide.
We'd love to hear how you're thinking about leveraging Extensions, or any other features you'd like to see in Extensions. Please post your comments and questions below and we look forward to hearing from you :).
- umalik-pdExplorer | Level 3
This is great news.
However looks like there is a bug that needs fixing.
Scenario:
- Consider a Personal App with "Full Dropbox" permission (since thats only where its available as type of writing this) - will call it MyShare
1. User A oauth the app, we got user token - good so far
2. User A goes to DB and select a file from ROOT/FILE.txt and clicks share with MyShare - good so far
3. User A is taken to EXTENSIONURL?file_id... - very good so far
4. "MyShare App" looks up file_id and OOPS, it doesn't have access - very bad
5. Upon investigating it turns out that the "Full Dropbox" scope only has access to "User A's files and folders'
Problem
- As an extension I would like for it to work on any file, regardless of it being outsitde "my folder" or my files
-- It would defeat the purpose if extenion works only my files
- Right now I can select other users file, click on share - and it fails as the API doesn't have the ability to download it.
- The user doesn't have access to the folders outside his own folder and it fails with:
{ "error_summary": "path/not_found/", "error": { ".tag": "path", "path": { ".tag": "not_found" } } }
- Further more when you make the api call to: https://api.dropboxapi.com/2/files/list_folder, you are chrooted to user's folder and dont have visibility outside. This doesn't seem competable with extensions.
Hope this helps and looking forward to a fix/update on this.
Thanks
- Greg-DBDropbox Staff
umalik-pd Thanks for the feedback! In this scenario, it sounds like the "ROOT/" you're referring to is a Business "team space". Apps with Full Dropbox access can actually access files in the team space that the connected user has access to (for which they may have triggered the extensions flow). API calls do default to the user's own member folder as the root though, as you found, so you'd need to configure your API calls when you need to access the team space instead. If you try to access something in the team space without setting the root accordingly, the call will fail. You can find information on how to configure this in the Namespace Guide.
I'll send this along to the team though as a request to include some way of indicating which root is relevant in the extensions flow.
- umalik-pdExplorer | Level 3
So one way to achive desired result would to have two apps:
- Personal Full Access: so we can get the extensions going
- Team File Access: so we can lookup files passed from share-extension
This works, but hope it doesn't change :)
Altough I think it would make sense to have an extension at the team level as well so there is no less confusion (and less apps for a user to install?)
About Discuss Dropbox Developer & API
Make connections with other developers
797 PostsLatest Activity: 11 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!