title: Programatically target default document library for file upload in SP16
body: <p>I made a C# application for uploading files to SharePoint. So far it Works as intended, on all document libraries except the default one. Everytime it throws an exception : List 'Documents' does not exist at site with URL 'http://...'
  I've tried with "Shared Documents" as well, but same result. Does the default library have some internal name I'm not aware of?</p>
  
  <p>The code for uploading is as follows:</p>
  
  <pre><code>// Get the SharePoint context
              ClientContext context = new ClientContext(domain);
  
              // Open the web
              var web = context.Web;
  
              String[] files = System.IO.File.ReadAllLines(args[0]);
  
              foreach (String file in files)
              {
                  // Create the new file  
                  var newFile = new FileCreationInformation
                  {
                      Content = System.IO.File.ReadAllBytes(file),
                      Url = Path.GetFileName(file),
                      Overwrite = true
                  };
  
                  // Get a reference to the document library
                  var docs = web.Lists.GetByTitle(library);
                  var uploadFile = docs.RootFolder.Files.Add(newFile);
  
                  // Upload the document
                  context.Load(uploadFile);
              }
  </code></pre>