title: Upload a document to a SharePoint list from Client Side Object Model
body: <p>I need to upload a document to a SharePoint list or folder using the Client Side Object Model from .NET (C#). What is the best way to do this? </p>
  
  <p>The requirements are as follows:</p>
  
  <ul>
  <li><p>Set metadata values</p></li>
  <li><p>No limitation on file size</p></li>
  <li><p>Must work with libraries that exceed the List View Threshold</p></li>
  </ul>