In my custom widget html I have:
<buton class="esri-button">
<form enctype="multipart/form-data" method="POST"
data-dojo-attach-point="uploadForm">
<input type="file" name="file" accept=".zip,.rar,.7zip"
data-dojo-attach-point="inFile" />
</form>
</buton>
in my widget (startup or onOpen) I have:
on(this.uploadForm, "change", lang.hitch(this, function (event) {
...
}));
It works fine, but if I activates it second time on SAME input file, the code inside the "on" callback is not entered at all...
I assume it's since the "change" event has not occurred since it remembers the previous file.
Am I right?
Can I detect it and present a warning (either by html or by javascript)?