You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
osherbd
6 years agoNew member | Level 2
C# Dropbox.api nuget - Upload via proxy
Hi,
I am using Dropbox.api nuget in C#.
I would like to know if there is an option to set a proxy that the files will be uploud using it?..
- 6 years ago
I don't believe we have any specific sample code for this, but you can construct a DropboxClient with a custom HttpClient which can include proxy settings:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxClient__ctor_1.htm
https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxClientConfig.htm
Greg-DB
Dropbox Staff
I don't believe we have any specific sample code for this, but you can construct a DropboxClient with a custom HttpClient which can include proxy settings:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_DropboxClient__ctor_1.htm
https://dropbox.github.io/dropbox-sdk-dotnet/html/T_Dropbox_Api_DropboxClientConfig.htm
osherbd
6 years agoNew member | Level 2
Thanks!
- benktesh6 years agoExplorer | Level 4
I have begun to work with Dropbox api and I encountered this issue.
Here is my solution.
private static DbxClientV2 getClient(String token, String host) { Proxy proxy = getProxy(); Config config = Config.builder().withProxy(proxy).build(); StandardHttpRequestor requester = new StandardHttpRequestor(config); DbxRequestConfig requestConfig = DbxRequestConfig.newBuilder("example").withHttpRequestor(requester).build(); DbxClientV2 dbxClient = new DbxClientV2(requestConfig, token, host); return dbxClient; }
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,884 PostsLatest Activity: 31 minutes agoIf 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!