mardi 3 janvier 2017

Create multimedia component using Tridion Web 8 core Service

The admin users are able to create multimedia component using web 8 Core service of Tridion.

But for non-admin users, there is an error as "The remote server returned an unexpected response: (400) Bad Request."

This error occurs at "UploadBinaryContent" method call.

//streamclient is an object of StreamUploadClient class
AccessTokenData accessToken = client.GetCurrentUser();
if (accessToken.ExpiresAt <= DateTime.Now.AddMinutes(2))
{
}
objfilestream = new FileStream(extractToFolder.ToString() + "\\" + fileToUpload.Name, FileMode.Open, FileAccess.ReadWrite);
Stream stream = objfilestream;
string filepath = streamClient.UploadBinaryContent(accessToken, stream);

Please can you help with this issue, so that non-admin users can also create multimedia components using web 8 core service.

Aucun commentaire:

Enregistrer un commentaire