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
C# 使用webclient复制到sharepoint文档库问题_C#_Sharepoint_Webdav - Fatal编程技术网

C# 使用webclient复制到sharepoint文档库问题

C# 使用webclient复制到sharepoint文档库问题,c#,sharepoint,webdav,C#,Sharepoint,Webdav,使用webclient复制到sharepoint文档库时,URL是否应包含目标文件名 例如: client.UploadFile("http://site/projects/project/documentLibrary/subfolder/" , "PUT", attachmentFileName ); 或 无法确定哪一个有效-因为现在这两个都不适用于我URL必须包含目标路径 我面临的问题很容易被忽略,我在URL中包含了完整的文件路径,而不仅仅是文件名。您能解释一下您在这里描述的内容吗?我正

使用webclient复制到sharepoint文档库时,URL是否应包含目标文件名

例如:

client.UploadFile("http://site/projects/project/documentLibrary/subfolder/" , "PUT", attachmentFileName );


无法确定哪一个有效-因为现在这两个都不适用于我

URL必须包含目标路径


我面临的问题很容易被忽略,我在URL中包含了完整的文件路径,而不仅仅是文件名。

您能解释一下您在这里描述的内容吗?我正试图解决您在2009年遇到的相同问题。
client.UploadFile("http://site/projects/project/documentLibrary/subfolder/" + attachmentFileName , "PUT", attachmentFileName );