Discuss Dropbox Developer & API
Hi all,
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.
@tcnolan7 The team is still working on some aspects of this issue, but yes the file download functionality in particular should be working now.
Thanks for the report! This is currently an issue when using the Dropbox Embedder with an "edit" link. To avoid this issue, please switch to using a "view" link instead.
Hi Greg,
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 ()
www.dropbox.com/sharing/fetch_user_content_link:1
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.
I am using the Embedder using JavaScript code found on this page: https://www.dropbox.com/developers/embedder
Thanks for any thoughts
Do you have a sample page with the view link I can try so I can look into this specifically for you? Feel free to open an API ticket here if you'd prefer to share privately. Thanks!
Hi Greg,
Yes I have test page setup:
https://terrywebdesign.com/dropbox-test.html
This is the share URL I am using in the javascript code:
https://www.dropbox.com/scl/fo/fzvi9xxpjhc12bl1v968a/h?rlkey=3d7l5smnk7f7txk3ufs3a9d7q&dl=0
Thanks.
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.
😁 Let see... where is the rlkey parameter skipped on processing? 🙂 It becomes so when the things get changed from now for yesterday...
Hi Greg,
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.
Thank you.
@tcnolan7 wrote:..., is it possible to achieve the same results using the API? ...
Hi @tcnolan7,
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. 😉
Good luck.
@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.
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 Twitter 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!