From 413406ca6e8da802ee272e100611029b01190120 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Wed, 20 Dec 2023 12:55:24 +0100 Subject: [PATCH] add async --- pages/media.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/media.vue b/pages/media.vue index 4b3de4a9..2aa507ad 100644 --- a/pages/media.vue +++ b/pages/media.vue @@ -632,7 +632,7 @@ function onFileChange(evt: any) { inputFiles.value = files } -function upload(file: any): Promise { +async function upload(file: any): Promise { const formData = new FormData() formData.append(file.name, file) xhr.value = new XMLHttpRequest()