cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dropbox embedder

Dropbox embedder

superheroEK
Explorer | Level 4
Go to solution

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

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

@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.

View solution in original post

10 Replies 10

Jay
Dropbox Staff
Go to solution

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!


Jay
Community Moderator @ Dropbox
dropbox.com/support


Heart Did this post help you? If so, give it a Like below to let us know.
:arrows_counterclockwise: Need help with something else? Ask me a question!
:pushpin: Find Tips & Tricks Discover more ways to use Dropbox here!
:arrows_counterclockwise: Interested in Community Groups? Click here to join!

superheroEK
Explorer | Level 4
Go to solution

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.

Здравко
Legendary | Level 20
Go to solution

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
Dropbox Staff
Go to solution

@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.

superheroEK
Explorer | Level 4
Go to solution

https://theme.htmlly.com/2/dropbox-2/

-- this is my dropbox.

 

I want it to behave like https://ceridap.eu/en/documents-on-the-covid-19-emergency/, so when clicking sub folders, it can open the sub folder.

The problem is I can only create main folder as shared folder. But when creating the sub folders, there is no option to create as shared folder. So how to make the sub folders accessible like in that sample website ?

Greg-DB
Dropbox Staff
Go to solution

@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
Explorer | Level 4
Go to solution

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
Dropbox Staff
Go to solution

@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.

superheroEK
Explorer | Level 4
Go to solution

I see. Ok. Thank you for all your help.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    KARIUKI New member | Level 2
  • User avatar
    superheroEK Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?