我已经阅读了有关 DropNet 的所有现有问题的所有两页,但我仍然无法理解为什么我不能在桌面应用程序中使用 DropNet 库和 C# 将文件从我的 PC 上的文件夹上传到我的保管箱。这是我在单击按钮时执行的代码:
private void ExportToDropbox(object sender, RoutedEventArgs e)
{
var client = new DropNetClient("<REDACTED>", "<REDACTED>");
client.UserLogin = new UserLogin();
var fileBytes = File.ReadAllBytes(@"../../Reports/Donka-Karamanova-dk-Report.docx");
var uploadResult = client.UploadFile("/", "Donka-Karamanova-dk-Report_copy.docx", fileBytes);
}