unselect the file of upload
Application Type
Reactive

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.

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


UnSelectUploadFile.PNG

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

SampleReactAppNew.oml

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


UnSelectUploadFile.PNG

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

SampleReactAppNew.oml

Thank you everyone!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.