开发者

Copying with webclient to sharepoint document library question

When I copy to a sharepoint document library using webclient, should the URL contain the destination filename or not?

For example:

client.UploadFile("http://site/projects/project/documentLibrary/subfolder/" , "PUT", attachmentFileName );
开发者_JAVA技巧

or

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

Can't figure out which one works - because right now neither work for me


The URL MUST include the destination path.

The issue I was facing was easy to overlook, I was including the full file path in the URL, not just the file name.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜