public void UploadDocument(string siteURL, string documentListName, string documentListURL, string documentName, byte[] documentStream) { using (ClientContext clientContext = new ClientContext(siteURL)) { //Get Document List List documentsList = clie…