cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Downloading File to Another Server Instead of Locally

Downloading File to Another Server Instead of Locally

Seapoe
New member | Level 2

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

2 Replies 2

Greg-DB
Dropbox Staff

It sounds like you're referring to the download method in SwiftyDropbox:

 

https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:FC13SwiftyDropbo...

 

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

Seapoe
New member | Level 2
Ahhh I see. I'll go with that approach
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Seapoe New member | Level 2
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?