使用C#将文件上传到共享点的文件夹中 [英] Upload a file into folder in Share point using C#

查看:318
本文介绍了使用C#将文件上传到共享点的文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

我想将文件上传到我在sharepoint中创建的文件夹中.
当我直接复制到站点时,我已经尝试使用copy.asmx正常工作.但是当我尝试在该站点上载文件夹时,它失败.

以下是url和test是在
中创建的文件夹 员工变更通知


http://dteamsites.com/sites/nktest/msk/Employee%20Change%20Notice/Forms/AllItems.aspx?RootFolder=%2fsites%2fnktest%2fmsk%2fEmployee%20Change%20Notice%2ftest&FolderCTID=&View=% 7b513446E4%2d6C55%2d45E0%2dA9D2%2dA630C0F8704D%7d

帮助解决此问题.

问候,
karthikeya



I want upload a file into a folder which i have created in sharepoint.
I have tried with copy.asmx its working fine when i copy directly to site. But it fails when i try to upload a folder in that site.

the following is the url with and test is the folder created in
Employee Change Notice


http://dteamsites.com/sites/nktest/msk/Employee%20Change%20Notice/Forms/AllItems.aspx?RootFolder=%2fsites%2fnktest%2fmsk%2fEmployee%20Change%20Notice%2ftest&FolderCTID=&View=%7b513446E4%2d6C55%2d45E0%2dA9D2%2dA630C0F8704D%7d

Help to solve this issue.

Regards,
karthikeya

推荐答案

检查以下链接
Check the following link here on StackOverflow.com for more information.


<谢谢Mehdi.我正在使用sharepoint Web服务dll.更重要的是,我能够上传文件以共享点.我的问题是,在网站中创建文件夹后,我无法上传,我想将文件上传到该特定文件夹中.
即在网站员工变更通知"中创建的文件夹测试内


http://dteamsites.com/sites/nktest/msk/Employee%20Change%20Notice/Forms/AllItems.aspx?RootFolder=%2fsites%2fnktest%2fmsk%2fEmployee%20Change%20Notice%2ftest&FolderCTID=&View=% 7b513446E4%2d6C55%2d45E0%2dA9D2%2dA630C0F8704D%7d

karthi
<Thank you Mehdi. I am working with sharepoint web service dll. More over I am able to upload files to share point. My issue is i am not able to upload when a folder is created in the site and i want upload my files into that particular folder.
ie inside the folder test which is created in site Employee Change Notice


http://dteamsites.com/sites/nktest/msk/Employee%20Change%20Notice/Forms/AllItems.aspx?RootFolder=%2fsites%2fnktest%2fmsk%2fEmployee%20Change%20Notice%2ftest&FolderCTID=&View=%7b513446E4%2d6C55%2d45E0%2dA9D2%2dA630C0F8704D%7d

karthi


这篇关于使用C#将文件上传到共享点的文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆