title: How to upload files in Dropbox API v2 C# using Nemiro.OAuth
body: <p><a href="https://i.stack.imgur.com/4x34I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4x34I.png" alt="enter image description here"></a>I'm trying to upload file but showing me 400 error.I'm trying the below code for file upload-</p>
  
  <pre><code>RequestResult strReq = OAuthUtility.Post
                                       (
                                         endpoint: "https://content.dropboxapi.com/2/files/upload",
                                         parameters: new HttpParameterCollection
                                          {
                                              {"path", "path"},
                                              {"autorename","false"}, 
                                              {stream}
                                          },
                                         authorization: AccessToken,
                                         contentType: "application/octet-stream"
                                       );
  </code></pre>
  
  <p>I couldn't find the reason for this error.I'm following the upload instructions provided here( <a href="https://www.dropbox.com/developers/documentation/http/documentation#files-upload" rel="nofollow noreferrer">https://www.dropbox.com/developers/documentation/http/documentation#files-upload</a> ) but it is not helpful for C#.
  Any help will be appreciated.</p>
  
  <p>I have edited my question with the error details.Please see the screenshot attached.</p>