使用邮递员将文件上传到共享点

问题描述 投票:0回答:1

当我尝试使用访问令牌将文件上传到共享点时遇到下面的错误。

x-msdavext_error →917656;
Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+and+select+the+option+to+login+automatically.

我已向应用程序发出了以下权限请求:

AppPermissionRequests AllowAppOnlyPolicy="true">

并且我已经按照以下帖子中提到的步骤进行了操作:

https://sharepoint.stackexchange.com/questions/250827/download-and-upload-file-from-share-point-using-java-rest-api-call

请帮帮我!

sharepoint-online outlook-restapi
1个回答
0
投票

尝试在Postman中将主体设置为二进制,请检查以下类似的线程。

Upload file to SharePoint online with HTTP REST calls

并在此处参考SharePoint REST API文章:

Working with folders and files with REST

© www.soinside.com 2019 - 2024. All rights reserved.