I'm trying to upload binaries in the new Web 8 way. (i've got a few gigs worth to upload).
Each time I try and upload a file, I run the following code:
StreamUploadClient _UploadClient = null; _UploadClient = new StreamUploadClient(_endpointConfigNameUpload); var userCredential = new System.Net.NetworkCredential(_username, _password, _domain); _UploadClient.ClientCredentials.Windows.ClientCredential = userCredential; AccessTokenData token = CoreServiceClient.GetCurrentUser(); fileUpload = _UploadClient.UploadBinaryContent(token, file.OpenRead());
and once the component is saved, I do the following:
After a few mins I get an error that :
Couldn't upload the binary file Provided access token has expired
I have performed the 2013 compatibility in my CME hoping this would stop the token from expiring (http://docs.sdl.com/LiveContent/web/pub.xql?action=home&pub=SDL%20Web-v1&lang=en-US&docid=GUID-879B67A8-71BA-4BBD-9CCE-9140B860904E&query=%2B%22AccessTokenData%22)
I've also tried adding 24 hours to the token via the token.ExpiresAt(DateTime)
But none of these changes help me with my issue. Has anyone got any advice?
Thanks in advance.