We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Mark S.115
11 years agoNew member | Level 1
file sharing app
I'm using Dropbox to back up files for my app. I want to enable users to share files that are stored on Dropbox. Currently the app gets a share link and reformats it in a way that when clicked, the a...
Mark S.115
11 years agoNew member | Level 1
When I do the request, instead of getting the file data I get this:
<html>
<head><title>Found</title></head>
<body>
<h1>Found</h1>
<p>The resource was found at <a href="https://dl.dropboxusercontent.com/content_link/blahblahblah?dl=1">https://dl.dropboxusercontent.com/content_link/blahblahblah?dl=1</a>;
you should be redirected automatically.
<!-- --></p>
<hr noshade>
<div align="right">WSGI Server</div>
</body>
</html>
I'm going to try parsing this response and pulling out the link and running the GET again. It just seems that this would be a common enough task that it would be more straight forward than that.
For the record, I read the documentation which is why I know to use ?dl=1. I also tried ?raw=1, and I tried adding them both. None of these give me the file.
If this sheds some light on the problem, I am using network.request from Corona SDK. Supposedly this handles redirects. Also, I have tried using short_url = true and short_url = false. I found out that it needs to be "false" because the short_url provided by your system includes ?dl=0.
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!