Parameter "File" type is not updating error in updateSettingAsync

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?

Iā€™m sorry, my bad, I was using a wrong method. The below works fine as expected :wink:

    try {
      await this.api.parameters.updateAsync({ name: 'InputGeom', value: blobGeom })
    } catch (e) {
      console.log('Error occurred: ', e)
    }

I was about to reply today morning, when you found the issue yourself. Many thanks @Balazs_Kisfali ! :wink:

1 Like