dbuchwald/hacsec

Correct situation with double XML upload

dbuchwald opened this issue · 2 comments

Scenario - go to Contacts, click on the Select file... button, open XML, click Import button. Works.
Repeat operation without reloading the page - fails. XML content sent to server is empty.
Reload page and try again - works again.

The event is bind to onChange, so if You select the same file then the event will not triggered.

Maybe we could clear the contents of the field immediately after successful upload then to ensure that onChange is correctly triggered? Or any other way to ensure that we send correct payload when sending second transaction (contactsXML is empty the second time)