Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过SaveBinaryDirect方法上载到SharePoint是否需要HTTP PUT访问权限?_Sharepoint_Csom - Fatal编程技术网

通过SaveBinaryDirect方法上载到SharePoint是否需要HTTP PUT访问权限?

通过SaveBinaryDirect方法上载到SharePoint是否需要HTTP PUT访问权限?,sharepoint,csom,Sharepoint,Csom,我们开发了一个.NET控制台应用程序,用于将文件上载到SharePoint 2016文档库。应用程序是使用Microsoft.SharePoint2016.CSOM库构建的,文件上载使用Microsoft.SharePoint.Client.file.SaveBinaryDirect方法调用 根据web漏洞扫描的结果,有人请求在IIS中禁用“HTTP PUT方法”。但是经过一些测试,我们发现 如果启用了“HTTP PUT”,则文件上载成功 如果禁用“HTTP PUT”,控制台应用程序将从文件上载

我们开发了一个.NET控制台应用程序,用于将文件上载到SharePoint 2016文档库。应用程序是使用Microsoft.SharePoint2016.CSOM库构建的,文件上载使用Microsoft.SharePoint.Client.file.SaveBinaryDirect方法调用

根据web漏洞扫描的结果,有人请求在IIS中禁用“HTTP PUT方法”。但是经过一些测试,我们发现

如果启用了“HTTP PUT”,则文件上载成功 如果禁用“HTTP PUT”,控制台应用程序将从文件上载步骤返回404错误
我们想确认SharePoint CSOM SaveBinaryDirect方法是否需要“HTTP PUT方法”,并且不能禁用该方法。

如果使用Fiddler监视请求,可以找到它的PUT请求


首先,要访问SharePoint Services REST/web,用户应该经过身份验证。它不像任何人可以上传文件。人们可以使用POST而不是PUT进行上传等,所以我不确定您使用的是什么类型的质量检查

这些都是SharePoint提供的开箱即用的服务,我看到很多大型企业在没有您建议的更改的情况下使用它