One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Seapoe
8 years agoNew member | Level 2
Downloading File to Another Server Instead of Locally
I see that the download function has an overload that specifies a destination. I'd like to download a file dropbox to a webserver I've setup without saving it locally. I'm a little confused by the closure it's defined as ((URL, HTTPURLResponse) -> URL). I couldn't find any documentation as to what that argument should be. Any help or direction to documentation with more detail about this function? I'm on IOS Swift 3
- Greg-DB
Dropbox Staff
It sounds like you're referring to the download method in SwiftyDropbox:
There's an example of using that method here:
https://github.com/dropbox/SwiftyDropbox#download-style-request
The URLs being referred to there are local file URLs, not on a remote server.
If you want to download from Dropbox to a server directly, we recommend running download code on the server itself. You can use the relevant SDK or third party library, if any, or use the HTTPS endpoints directly, for that, depending on what your server is running:
https://www.dropbox.com/developers/documentation
https://www.dropbox.com/developers/documentation/communitysdks
https://www.dropbox.com/developers/documentation/http/overview- SeapoeNew member | Level 2Ahhh I see. I'll go with that approach
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,950 PostsLatest Activity: 2 days ago
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 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!