Discuss Dropbox Developer & API
Question: "I'm working on integrating Dropbox into my web application using the Dropbox Drop-ins library. Currently, I'm able to load a folder from Dropbox using the Chooser, but I'm facing an issue. When a user selects a file from the folder, it opens in a new tab with the Dropbox website. However, I want the selected file to open within the same iframe where the folder is loaded. How can I achieve this behavior?"
Context: I'm using the Dropbox Drop-ins library to allow users to select files from their Dropbox account and interact with them within my web application. While the initial folder selection works smoothly, I'm struggling to handle file selection events and load the selected file within the same iframe.
Desired Outcome: I want to ensure a seamless user experience where selected files from Dropbox open within the same iframe, avoiding the need for users to navigate away from my application.
@Nihad1 wrote:... When a user selects a file from the folder, it opens in a new tab with the Dropbox website. However, I want the selected file to open within the same iframe where the folder is loaded. How can I achieve this behavior?" ...
Hi @Nihad1,
Actually you cannot open directory in such a way (on your own iframe). Dropbox won't let you. Most probably you're using Dropbox Embedder.
Your actual question refers to an ongoing bug. It's good that more people (including you now) signal for this bug and let's hope it will be fixed soon. This bug resides for a while already and Dropbox team seems not too much engaged with though. Let's hope this will change.
Good luck to all of us.
@Nihad1 wrote:... When a user selects a file from the folder, it opens in a new tab with the Dropbox website. However, I want the selected file to open within the same iframe where the folder is loaded. How can I achieve this behavior?" ...
Hi @Nihad1,
Actually you cannot open directory in such a way (on your own iframe). Dropbox won't let you. Most probably you're using Dropbox Embedder.
Your actual question refers to an ongoing bug. It's good that more people (including you now) signal for this bug and let's hope it will be fixed soon. This bug resides for a while already and Dropbox team seems not too much engaged with though. Let's hope this will change.
Good luck to all of us.
is there is any other options?
To implement this feature from zero on your own.
@Nihad1 As Здравко said, it sounds like you're referring to displaying the contents of the folder using the Dropbox Embedder. This is currently open with the team and I'll follow up here with any updates.
Thanks for your attention to this matter
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 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!