Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hello,
I am currently working on app (full permission) where I would like to choose a folder and then display the content on a webpage. It is important that it should be constantly looking for changes in that folder, so I am using longPoll endpoint.
My current flow is: Press a button 'Authorize' to get the access_token and then open a Dropbox.Chooser to select a folder. I would like to open the Dropbox Chooser popup after I get the access_token from the API, but Chrome automatically blocks the popups that don't come from a trusted event (as in a click) - same for Dropbox Chooser. From the UX, I don't want to use 2 buttons and I don't want to ask users to allow popups from my domain.
Long story short: My settings should contain access_token and folderId by launching the flow with one click.
I am stuck between documentation and differenet stack overflow responses but I was not able to implement something similar.
Thank you,
Bogdan
Hey Greg, thanks for your answer.
I was hoping there is a Dropbox Chooser from the SDK that also includes the Authorization part. (as Google Picker works - select something after you authorize the app)[1].
The complete story of my project consist in two apps. The user story is being able to display the photos you have from a dropbox folder, but this app does not have any user interaction. So in order to read the files from a folder, I need the access_token and the folderId.
There is a different app for that where user logs with getAuthenticationUrl and selects a folder with Dropbox Chooser and then, I pass this config object to the other app.
I was hoping I could launch both flows (authorization and file picking) together, not separately.
I started my own pseudo-file picker by 'navigating' dynamically with filesListFolder but maybe I am missing something and there is a better solution.
Have a wonderful day,
Bogdan
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
Sound good? Let's get started.Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!