fix and improve various things

This commit is contained in:
Mystikfluu
2022-09-05 15:53:07 +02:00
parent 4342f8a69c
commit ef3d5b3817
5 changed files with 58 additions and 28 deletions
+6
View File
@@ -369,6 +369,12 @@ function addFile(file) {
return;
}
files[files.length]=file
const fileimg = createElement("img")
console.log(file.name,file.name.lastIndexOf("\."),file.name.substring(file.name.lastIndexOf("\.")+1));
fileimg.src = "/api/getFileIcon/"+file.name.substring(file.name.lastIndexOf("\.")+1)
getById("filesDiv").appendChild(fileimg)
//filesDiv
console.log("File added: ", file.name, file.type, file.size);
}