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

  1. Create new Console Application 
  2. Add the SharePoint Client dlls to the project references
  3. Write the below code :