After select a file by the upload widget, it can not unselect the file.
How can I unselect the file?
The traditional web upload widget can unselect the file by click the cancel button in the file select popup window.
Hi RR,
You can call below javascript to unselect the file -
document.querySelector("#" + $parameters.FileInputId + " > input[type=file]").value = null;
Please reset the FileName and FileContent variable as well.
https://personal-itafqtdv.outsystemscloud.com/SampleReactAppNew/Home
Thanks
Vinod
Hello,
You can create your own icon/button/link that encapsulates that logic. You simply remove the Binary file from your variable and it should work.
Regards,
Bogdan
Hi,
Please find the attached "UnSelectUploadFile"
I hope this will help you to understand.
Regards
Shweta
Thank you everyone!