Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
able to embed pdf using anchor tags
but getting error as Drobox is not defined when trying to embed using Drobox(option,element)
@bspindia, Are you sure keep still set up the Embedder properly? 🤔 Make sure you put in the "dropins" script, at least (the Dropbox object comes from there).
PS: Make sure you remove all possible typos in your code! 😉 (Drobox ≠ Dropbox)
if i wouldn't appended the dropoin script to body, how would anchor tag embed will work ?
@bspindia Importing the dropins.js script is required for both ways of using the Embedder (that is, via anchor tags or via JavaScript). Make sure you set it up as shown in the documentation.
i imported it hence working for anchor tag,
issue with Dropbox.embed()
@bspindia Using Dropbox.embed is currently working for me. As Здравко noted, I see the latest code you shared is not the same as you originally shared though. So, can you confirm what error you are currently getting? If you're still seeing an issue, it would be useful if you share the exact code and steps you're using that reproduce the issue, as well as the full/exact error you're getting.
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!