I'm trying to upload a text file to my account, but something I'ts wrong
static async Task Run()
{
using (var dbx = new DropboxClient("MYTOKEN"))
{
var file = "list.txt";
var folder = "/Users/user01/Downloads/";
var lastpath = folder + file;
var mem = new MemoryStream(File.ReadAllBytes(@"C:\Users\user01\Downloads\list.txt"));
var upload = await dbx.Files.UploadAsync(lastpath, Dropbox.Api.Files.WriteMode.Overwrite.Instance, false, null, false, mem);
Console.WriteLine(upload);
Console.ReadLine();
}
}