I'm trying to upload file but showing me 400 error.I'm trying the below code for file upload-
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"
);
I couldn't find the reason for this error.I'm following the upload instructions provided here( https://www.dropbox.com/developers/documentation/http/documentation#files-upload ) but it is not helpful for C#. Any help will be appreciated.
I have edited my question with the error details.Please see the screenshot attached.