Want to know more about Dash? Check out how Amy uses Dropbox and Dash to make her day easier here! 

Forum Discussion

superheroEK's avatar
superheroEK
Explorer | Level 4
3 years ago
Solved

Dropbox embedder

Hi, i'm using the new dropbox embedder. I've made the folder as shared folder. But inside the folders, I have also sub folders. The issue is the sub folders cannot be accessed. How to fix this ? Error message: 

Owner hasn’t granted you access to this link

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

    superheroEK Thanks, that's helpful. I've looked into your Embedder setup, and I see this is failing because of the use of a type of shared link not meant for use with the Dropbox Embedder.
     
    Specifically, your Embedder is configured with an "edit" shared link (with "/scl/fo" in the URL), however the Embedder is meant for use with "view" shared links (with "/sh" in the URL).
     
    I'll ask the team to see if we can update the Embedder to fully support edit links like that, but to avoid these issues, please replace the edit link with a view link. You can find information on creating shared links here.

10 Replies

Replies have been turned off for this discussion
  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    Hi superheroEK, thanks for messaging the Community.

     

    Could you clarify what you mean by the Dropbox embedder? 

     

    Are you referring to using the API to access Dropbox?

     

    This will help me to assist further!

  • superheroEK's avatar
    superheroEK
    Explorer | Level 4
    3 years ago

    This one: https://dropbox.tech/developers/now-available--dropbox-embedder

    This is the working sample I want to copy: https://ceridap.eu/en/documents-on-the-covid-19-emergency/

    If you see in this page, there are sub folders that can be clicked: https://prnt.sc/GVnakmPzm8FE

    Once clicked, it will open the files inside that sub folders.

    My issue is how to make the sub folders clickable ? Because in my page, when I clicked the sub folder, it displays like this https://prnt.sc/dAmgv_2ve27y.

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

    Hi superheroEK,

    If you "want to copy: https://ceridap.eu/en/documents-on-the-covid-19-emergency/", then just copy it. 😉 The following is part of that page responsible for link embedding (as is; together with the link):

    <script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="cdoxsqm1vtmhued"></script>
    <a href="https://www.dropbox.com/sh/znsbu621inr1k1x/AACBdpg6jAlf-rliJwOkT_q2a" class="dropbox-embed" data-height="500px"></a>

    That's it - just put it on suitable place. The error you receive shows that you're using different link (probably with limited access). Make sure you can access the link, you're using, in private browsing mode! 👈 Otherwise it won't work. If needed, change to public access permission.

    Hope this helps.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    superheroEK As Здравко said, it sounds like this is due to the link you're using. If this still isn't working for you, please share the code/link you're using so we can take a look.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    superheroEK Thanks, that's helpful. I've looked into your Embedder setup, and I see this is failing because of the use of a type of shared link not meant for use with the Dropbox Embedder.
     
    Specifically, your Embedder is configured with an "edit" shared link (with "/scl/fo" in the URL), however the Embedder is meant for use with "view" shared links (with "/sh" in the URL).
     
    I'll ask the team to see if we can update the Embedder to fully support edit links like that, but to avoid these issues, please replace the edit link with a view link. You can find information on creating shared links here.

  • superheroEK's avatar
    superheroEK
    Explorer | Level 4
    3 years ago

    Many thanks, Greg. That appears to solve the issue. I didn't know that the default for share link apparently is with edit access.

    I have changed it to view access and it's working now. Many thanks for your assistance 🙂

     

    Another small issue, sometimes the title stucked as "Loading..." like this: https://prnt.sc/9IodXXbd3yOV.
    Check out the sample on this page:
    https://theme.htmlly.com/2/dropbox/
    Is it because of cache ? How do I clear it so it displays the proper title again ?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    3 years ago

    superheroEK I just checked on your page, and it's still using a "/scl/fo" link. Make sure you've updated the page to use a "/sh" link, which should resolve the "Loading" issue as well.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,018 PostsLatest Activity: 2 years ago
402 Following

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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!