add async

This commit is contained in:
jb-alvarado 2023-12-20 12:55:24 +01:00
parent 5102ff8780
commit 413406ca6e

View File

@ -632,7 +632,7 @@ function onFileChange(evt: any) {
inputFiles.value = files inputFiles.value = files
} }
function upload(file: any): Promise<null | undefined> { async function upload(file: any): Promise<null | undefined> {
const formData = new FormData() const formData = new FormData()
formData.append(file.name, file) formData.append(file.name, file)
xhr.value = new XMLHttpRequest() xhr.value = new XMLHttpRequest()