We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

nzmike's avatar
nzmike
Explorer | Level 3
7 years ago

Xamarin.DropBox.APi - HTTP 400 (Bad request) on DownloadAsync

Hi, I have the following code in a static helper class which works perfectly in a Windows UWP app: public static DropboxClient dbxClient { get; private set; } ...... public static async Task<stri...
  • Greg-DB's avatar
    7 years ago

    The Dropbox API does require one of a certain set of Content-Type values for download calls like this. The official Dropbox.Api library (i.e., the official Dropbox API v2 .NET SDK) does automatically set a valid Content-Type, so you don't need to do that yourself when using it. 

    It sounds like when you switch to Xamarin and the Xamarin.Dropbox.Api library, something is overriding it and setting an incorrect Content-Type. I'm afraid we can't offer help with those though, as they're made/maintained by a third party. You may be better served contacting the Xamarin maintainers or asking on a Xamarin forum.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 8 hours ago
325 Following

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!