Uploading Files and Folders Recursively to a SharePoint 2010

You can upload documents to SharePoint libraries using the Object Model or SharePoint Webservices and this article about how to upload a file and folders recursively from a local folder to a folder on a Microsoft SharePoint Foundation site using the Object Model.

Sharepoint.png

Local Folder

Sharepoint-Local.png

SharePoint Library

Sharepoint-Web.png

Output

Sharepoint3.png

Limitations

  • The size of the file that is uploaded cannot exceed 2 GB.
  • For all this code to execute, current logged in user should have create and upload, delete permissions at respective document library.
You can dowload complete source:http://www.codeproject.com/KB/gadgets/UploadSharePointFiles.aspx

Source:http://virtualizesharepoint.com

0 nhận xét:

Post a Comment

thanks comment