I'm unable to upload a file but I am able to use user creation api.
I've tried TXT, BINARY and XML file types.
InvalidCastException: Cannot cast from source type to destination type.
com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW.ExecuteMultipart (System.String name, System.String filePath, System.Collections.Generic.Dictionary`2 queryParams, System.Collections.Generic.Dictionary`2 postParams, System.Collections.Generic.Dictionary`2 signParams, System.Collections.Generic.Dictionary`2 headerParams, System.String url, System.String accept, App42CallBack callBack)
com.shephertz.app42.paas.sdk.csharp.upload.UploadService.UploadFileForUser (System.String name, System.String userName, System.String filePath, System.String fileType, System.String description, App42CallBack callBack)
SendLogView+<Send>c__IteratorC.MoveNext () (at Assets/Code/Global.cs:191)
public SendLogView(GUISkin skin, MonoBehaviour owner)
{
System.IO.File.WriteAllText( System.IO.Path.Combine(Application.persistentDataPath,"log.xml"), Log.Output);
App42Log.SetDebug(true); //Prints output in your editor console
serviceAPI = new ServiceAPI("removed","removed");
uploadService = serviceAPI.BuildUploadService();
userService = serviceAPI.BuildUserService();
owner.StartCoroutine(Send ());
}
IEnumerator Send()
{
userService.CreateUser(SystemInfo.deviceUniqueIdentifier, "password", "enquiries@oddgames.com.au", new CreateUserCallBack());
yield return new WaitForSeconds(5f);
uploadService.UploadFileForUser("log.xml","1", System.IO.Path.Combine(Application.persistentDataPath,"log.xml"), UploadFileType.XML, "1", new SendCallBack(this));
}