We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here. 

Forum Discussion

Nihad1's avatar
Nihad1
Explorer | Level 4
6 months ago

Load files inside same i frame

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.

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

    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.

    • Nihad1's avatar
      Nihad1
      Explorer | Level 4

      Thanks for your attention to this matter

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    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.