Discuss Dropbox Developer & API
We are trying to use the DropBox embedder in our website to allow users to download files. I have the DropBox folder shared and set to "Anyone with this link can edit".
The embedder works find, I can see the folders and files. But if I click the download icon, nothing happens. If I first login to my DropBox account (which is the owner of the folder), when I click the download icon, the file downloads.
Is there a share setting or embedder app setting I am missing? We would like people to be able to download from the website without having to login to DropBox.
Thank you for your response. I did try the View share link but have the same result. In dev tools I see this error:
Failed to load resource: the server responded with a status of 403 ()
If I copy the View share link directly into the browser and I'm not logged in to DropBox, that works fine. It just seems to be the embedder code that has a problem.
Thanks for any thoughts
Yes I have test page setup:
Thanks, that's helpful. I just checked on this more specifically for you, and it looks like in this case that workaround unfortunately won't actually help. (There are a few variables at play here; apologies for the trouble.) In any case I've raised this with the team and I'll follow up once I have an update on the issue.
If the Embedder is not an option for us, is it possible to achieve the same results using the API? Basically we simply want to display a certain folder and allow the user to explore subfolders and download files.
..., is it possible to achieve the same results using the API? ...
Nothing can stops you do that. Of course, if we ignore that you would need to implement everything, implemented by the Embedder, yourself. A pros can be that you can make everything more customized. 😉
@tcnolan7 Здравко is correct; it is possible to implement functionality like this using the Dropbox API, but it would be substantially more work. For instance, you could use the API from your server to call /2/files/list_folder[/continue] to list files/folders, and /2/files/download to download file content, and then display the desired information on your site.
Anyway, this issue for the Embedder is still open with the team, and I'll follow up here once I have an update on it.
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!