Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Paul T.52
10 years agoNew member | Level 2
Dropbox links only work over SSL
I made this method for getting a Dropbox link to some media I wanted to stream from Dropbox..
public String getLinkUrl(String path) throws DropboxException {
DropboxAPI<AndroidAuthSession> dropboxAPI = DropboxManager.getInstance().getApi();
DropboxAPI.DropboxLink dropboxMediaLink = dropboxAPI.media(path, false);
return dropboxMediaLink.url;
}
This stopped working all of a sudden in the last few days but if I set the ssl flag to true in this line..
DropboxAPI.DropboxLink dropboxMediaLink = dropboxAPI.media(path, true);
It now works when setting SSL to true.
It would be good to understand why it no longer works without SSL though
2 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the report. The servers for dl.dropboxusercontent.com are not currently listening on port 80, meaning that http:// requests won't work. We're looking into whether or not we can re-enable that, but for the sake of security we highly recommend switching to using https:// only.
In the Android Core SDK media function, this means passing true as the ssl parameter.
For reference, in the interest of user security, we stopped serving content over http a long time ago, and redirected requests from http to https after that, so it is likely that any clients you're using are already able to handle https links.
- Greg-DB10 years ago
Dropbox Community Moderator
Links using http:// on dl.dropboxusercontent.com should be working again now. For the sake of security though, we still highly recommend using only https:// links.
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!