Tag Info

New answers tagged

0

Have you tried upload using this code? ClientContext context = new ClientContext("URL of the site collection"); Web oWeb = context.Web; FileCreationInformation oFile = new FileCreationInformation(); oFile.Content = System.IO.File.ReadAllBytes(@"C:\Work\Files\17580_FAST2010_S05_Administration.pptx"); oFile.Url = "File_To_Be_Uploaded_to_SP.mp4"; List docs = ...


0

You need get the return d.GetContextWebInformation.FormDigestValue from restapi /_api/contextinfo and insert the value on header X-RequestDigest



Top 50 recent answers are included