问题 I'm using the CSOM to upload files to a Sharepoint 365 site. I've logged in succesfully with Claims based authentication using methods found here "http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx" But using SaveBinaryDirect on the ClientContext fails with a 405 due to cookies being attached to request too late. Another method of using CSOM to upload files is similar to below. But with SP 365, this limits the file size to about 3 meg. var