overriding previously selected files issue#529

This commit is contained in:
mannam 2023-12-30 13:32:54 +05:30
parent 44e3556382
commit 4612b05199

View file

@ -10,7 +10,6 @@ document.getElementById("fileInput-input").addEventListener("change", function()
function displayFiles(files) { function displayFiles(files) {
var list = document.getElementById("selectedFiles"); var list = document.getElementById("selectedFiles");
list.innerHTML = "";
for (var i = 0; i < files.length; i++) { for (var i = 0; i < files.length; i++) {
var item = document.createElement("li"); var item = document.createElement("li");