Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
perco
2 years agoExplorer | Level 4
Get file content url from dropboxusercontent domain with javascript
Hello, I'm encountering a problem while trying to obtain the content URL of a file. Specifically, when I use a shared link to fetch a file, I receive a 302 response but i encounter CORS issues. ...
- 2 years ago
Hi perco,
In cases like yours, an easy workaround would be to replace original share link domain, pointing to your music/song (www.dropbox.com) to dl.dropboxusercontent.com, without changing anything else. 😉 That's it.
Hope this helps.
Здравко
2 years agoLegendary | Level 20
perco wrote:...
- sharingGetSharedLinkFile
...
perco, I want to mention something I skipped before; just for completeness.
Once you have gotten the file content using the mentioned call, you don't need to use any link at all, so no any CORS issues would take place. You can just use received Blob object to initialize your player. 😉
PS: The discussed CORS issues may be considered as Dropbox links bugs though. Let's hope this will be fixed - it's meaningless response CORS headers to differ based on the request form, I think.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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, Facebook or Instagram.
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!