使用邮递员将文件上传到Sharepoint

时间:2019-11-18 07:25:55

标签: sharepoint-online outlook-restapi

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

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

请帮帮我!

1 个答案:

答案 0 :(得分:0)

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

Upload file to SharePoint online with HTTP REST calls

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

Working with folders and files with REST