AnsweredAssumed Answered

on change of html input form element does not work 2nd time if SAME input file...

Question asked by levmichael on Aug 18, 2020
Latest reply on Aug 27, 2020 by levmichael

In my custom widget html I have:

    <buton class="esri-button">
        <form enctype="multipart/form-data" method="POST"
            <input type="file" name="file" accept=".zip,.rar,.7zip"
                      data-dojo-attach-point="inFile" />


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)?


Help will be greatly appreciated,