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

Forum Discussion

mikexavier's avatar
mikexavier
New member | Level 2
4 years ago

Password protected folders when using the embedder

I have set up an app on dropbox and added some folders. Using the anchor tag method described here it displays the contents of the root folder correctly.

However, it doesn't seem to respect the sharing rules set up of individual folders within that app.

Folder sharing settings:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If I am on the webpage where this content is displayed, I can double click into this folder without entering a password.

What did I miss?

Thanks for your help!

  • Greg-DB's avatar
    Greg-DB
    4 years ago

    Oh I see, thanks for clarifying. That's expected then. Technically, a password applies to a shared link, not a folder itself. And, supplying a shared link to the parent folder enables access to anything in that folder. Any shared links that may or may not exist for the items underneath, and the settings for those other shared links, that don't come in to play.

     

    I don't think there's a good way to set this up the way you want exactly unfortunately, other than rearranging your folders and using multiple Embedders.

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

    Are you signed in to the account that owns that shared link? If so it won't prompt for the password.

    • mikexavier's avatar
      mikexavier
      New member | Level 2

      I tried signing out, and no joy. 

      Does it have anything to do with the parent folder settings?  For the contents of that parent folder to be visible you need to set it to "anyone with link".

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

        I believe just the settings on the supplied shared link matter, not a parent folder. It may be worth double checking that you've set the password on the same shared link as you've supplied to the Embedder.

         

        Also, another thing to note is that it will not prompt for the password again if you've already supplied the password in that session.

         

        I put up a simple example of the Embedder with a shared link for a folder protected with a password here: https://brave-wing-9849b2.netlify.app/ . The password for that sample shared link is just "password". That's working as expected for me.

         

        If something still isn't working for you, feel free to share a sample page so we can take a look. You can also share privately here if you'd prefer: https://www.dropbox.com/developers/contact

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API

Make connections with other developers

795 PostsLatest Activity: 7 days ago
192 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!