我正在尝试使用上传会话来实现上传大文件。
现在我有(获取上传会话):
UploadSession uploadSession = await graphClient
.Users["user3@myComp.onmicrosoft.com"]
.Drive
.Root
.ItemWithPath(@"\someFolder\file.txt")
.CreateUploadSession()
.Request()
.PostAsync();
此请求的响应是一些会话 URL,但是当我将文件块上传到此 URL 时,我收到一个错误:
{
"error": {
"code": "invalidRequest",
"message": "DeferCommit was set to false for this upload session."
}
}
有谁知道是什么导致了这个错误?