Reset form input file after upload

This commit is contained in:
Bartek Fabiszewski 2017-05-09 18:41:53 +02:00
parent ca77348fb1
commit 8b65b905ce

View File

@ -250,6 +250,7 @@ function importFile(input){
// FIXME: show progress // FIXME: show progress
xhr.open("POST", "utils/import.php", true); xhr.open("POST", "utils/import.php", true);
xhr.send(new FormData(input.parentElement)); xhr.send(new FormData(input.parentElement));
input.value = "";
} }
function updateSummary(l, d, s) { function updateSummary(l, d, s) {