This is how my input tag looks like:
I have add this input tag into form tag..
I angular typescript, I have added below lines, get your form id in document forms and make that value as null.
for(let i=0; i 0){
if(document.forms[i][0]['value']){ //document.forms[i][0] = "file_data"
document.forms[i][0]['value'] = "";
}
}
}
Print document.forms in console and you can get idea..