如何使用Microsoft Graph将大文件上传到OneDrive

当creating an upload session的时候我得到了一个404 - File name not provided in url响应。

我的请求看起来像这样(没有任何主体):

POST /v1.0/drives/{drive-id}/items/{item-id}/createUploadSession
Authorization: bearer <token>
Content-Type: application/json

这个问题只出现在消费者OneDrive上,OneDrive for Business运行良好。

转载请注明出处:http://www.0591kyj.com/article/20230329/1299276.html