Input File Data not updating in database

Hi Team,

I am using Camunda Embedded form for approval process, as part of process if document not exists then i am allowing user to upload, up to here it is working fine but after selecting the file data not updating in database base or cam variables are not updating, please refer below code snippet,

Note : if i remove ng-if condition it working as expected.