File uploading Dropbox v2.0 API
<p>I'm using the new Dropbox SDK v2 for .NET.</p>

<p>I'm trying to upload a document to a Dropbox account.</p>

<pre><code>public async Task UploadDoc()
    {
        using (var dbx = new DropboxClient("XXXXXXXXXX"))
        {
            var full = await dbx.Users.GetCurrentAccountAsync();
            await Upload(dbx, @"/MyApp/test", "test.txt","Testing!");
        }
    }
async Task Upload(DropboxClient dbx, string folder, string file, string content)
    {
        using (var mem = new MemoryStream(Encoding.UTF8.GetBytes(content)))
        {
            var updated = await dbx.Files.UploadAsync(
                folder + "/" + file,
                WriteMode.Overwrite.Instance,
                body: mem);

            Console.WriteLine("Saved {0}/{1} rev {2}", folder, file, updated.Rev);
        }
    }
</code></pre>

<p>This code snippet actually creates a test.txt document on the Dropbox account with the "Testing!" content, but I want to upload a <strong>document</strong>, with a given <strong>path</strong> (for example: "C:\MyDocuments\test.txt"), is that possible?</p>

<p>Any help would be very much appreciated.</p>