You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears the api.Upload< T >(api, fileUpload, payload) method requires a type T that is never used? It seems to work fine with just < object > but wasn't sure what it expected.
var api = PlanGridClient.Create(Properties.Settings.Default.ApiKey);
var versionRequest = new UploadVersionRequest
{
NumberOfFiles = 1,
VersionName = "MyVersion"
};
var versionUpload = await api.UploadVersion(project_uid, versionRequest);
foreach (var fileUploadRequest in versionUpload.FileUploadRequests)
{
var uploadFile = new UploadFile
{
FileName = filename
};
var fileUpload = await api.UploadFileToVersion(project_uid, versionUpload.Uid, fileUploadRequest.Uid, uploadFile);
await api.Upload<object>(fileUpload, payload); // what type is expected here???
}
The text was updated successfully, but these errors were encountered:
It appears the api.Upload< T >(api, fileUpload, payload) method requires a type T that is never used? It seems to work fine with just < object > but wasn't sure what it expected.
The text was updated successfully, but these errors were encountered: