fix and improve various things
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user