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

alitvinenko's avatar
alitvinenko
Explorer | Level 3
5 years ago

How to implement "View on Dropbox.com" in a web app?

Hello!

 

We are developing a web app that creates files in the "App" folder of the customers' Dropbox account. Is there a way for us to create a link that we could display on our UI, which would preview this file in Dropbox web app or highlight it in its parent folder (again on Dropbox web app)?

 

In other words:

1. we have a web app with "App folder" permission

2. our app generates a file in the App folder "test.csv"

3. Dropbox API only tells us that it is a "test.csv" file (we don't know the name of the parent folder; or info about private vs work account)

4. how can we get a URL like: https://www.dropbox.com/personal/Apps/Import2%20Wizard?select=test.csv or https://www.dropbox.com/preview/Apps/Import2%20Wizard/test.csv?role=personal so that customers could directly navigate to this file in their Dropbox account?

 

P.s. we know about the option to create a shareable link to the file, but we wouldn't want to create a link on behalf of the customer that could leak and give access to the file.

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    No, unfortunately the Dropbox API doesn't offer a way to get the private Dropbox web site URL for a file or folder like this, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

If 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!