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...
Steve M.
Dropbox Staff
11 years agoThat's the redirect I mentioned. I would strongly recommend looking at the Location header rather than trying to parse the returned HTML. The header should contain the same URL but not require any fragile parsing.
I don't have any direct experience with Corona SDK, but I'd agree that the network.request documentation makes it look like the default behavior is to follow redirects. I don't have any insight as to why that isn't working as expected.
Since it looks like you're getting the original response (before the redirect), I'd suggest using event.responseHeaders.Location to get the URL from the 302 response. Or ping the Corona folks to figure out why the automatic redirect following isn't working.
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!