From 8b65b905ce89e7c5713065dedc384f55e87f67c4 Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 9 May 2017 18:41:53 +0200 Subject: [PATCH] Reset form input file after upload --- js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/main.js b/js/main.js index 81d18e7..bf085f4 100755 --- a/js/main.js +++ b/js/main.js @@ -250,6 +250,7 @@ function importFile(input){ // FIXME: show progress xhr.open("POST", "utils/import.php", true); xhr.send(new FormData(input.parentElement)); + input.value = ""; } function updateSummary(l, d, s) {