49
Views
2
Comments
Solved
Why File Upload OnChange event works only once?
Question
Application Type
Reactive

Hi there,

I am wondering:

1. I create a button to show Upload widget ("display: none;") with javascript:

document.getElementById($parameters.WidgetId).click();

2. when firstly i click the button, it works normally - the Onchange event of the Upload is called:

Unfortunately, for the second try, the On Change event is not called (silent). 

How to solve this?

I attach the simple oap here.

thanks and regard

UploadMe.oap
2023-11-20 06-53-17
Neha Rathore
Solution

Hi ibox,
Please find the changes... you were not making the upload1 data null that is why it was not working if you are uploading the same file.

Thanks

UploadMe.oap
2025-01-09 14-56-57
IQ78

Thank u, Sir!

u rock!

regards

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