![]() Var fileCreationInformation = new FileCreationInformation() Var folderToUpload = folderToBindTo.Where(i => i.Name = SubFolderName).First() String SubFolderName = SubFolders //Get SubFolder 'Invoice' List documentsList = ("Documents") //Shared Documents -> DocumentsĬlientContext.Load(documentsList, i => i.RootFolder.Folders, i => i.RootFolder) Public string UploadMultiFiles(HttpRequestBase Request, HttpServerUtilityBase Server)įor (int f = 0 f website.Lists, website => website.ServerRelativeUrl) Using (clientContext = new ClientContext(ServerSiteUrl))ĬlientContext.Credentials = new SharePointOnlineCredentials(UserName, securePassword) ![]() Private string UserName = string Password = "********" ![]() Private string LibraryUrl = "Shared Documents/Invoices/" Using (var fs = new FileStream(fileName, FileMode.Open)) Upload a file to a SharePoint site (including SharePoint Online) using File.SaveBinaryDirect Method: using (var clientContext = new ClientContext(url))
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |