I try to update a model with a file
type parameter. The parameter is properly shown in the console if I log it, however it gets an error while updating the model:
try {
await this.api.updateSettingAsync({ name: 'InputGeom', value: blobGeom })
} catch (e) {
console.log('Error occured: ', e)
}
The error is: TypeError: a.startsWith is not a function
I tried to update the parameter both, with name
and id
. Same result. The value
which I am passing is a blob
and created like this:
const blobGeom = new Blob([JSON.stringify(geomData)], { type: 'application/json' });
What can be the issue?