Upload local Files to remote SharePoint site
On SharePoint
This post is to answer a question how to upload files to a remote SharePoint installation , for remote SharePoint installation we have different options
- Using RESTful api which is in the new SharePoint 2013 is a very powerful API , using RESTful api can be via Javascript ajax calls (GET/POST) or using a Console Application
- The other option is to use the Client Object model
In this post we will elaborate how to use the client object model to upload files to a remote Document Library
hi,
ReplyDeletei have a doubt here:
where will i host this console appln/winforsm/asp.net?
1)suppose if i wanna upload 100MB+ files from a remote machine where SP 2013 is NOT INSTALLED, how to host this file in that non-sp machine?
because sp dlls are required to be present to run thiis code. right?
2) is it possible that 100MB files uploading is supported in SP 2013?
thnx for your article!
help is appreciated.
1)this console application will run on any 64-bit windows machine
ReplyDelete2)you can upload files from a machine with no SharePoint 2013 but you need .NET framework and SharePoint Client references (you can just copy the dlls)
3) as the client object model calls sharepoint webservices you need to change the SPClientRequestServiceSettings.MaxReceivedMessageSize
check the msdn post below
http://blogs.msdn.com/b/sridhara/archive/2010/03/12/uploading-files-using-client-object-model-in-sharepoint-2010.aspx