From 7f7e28b6ea15c065a80c7dbeb6b295e66215a0d1 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 2 Jul 2024 18:55:22 +0800 Subject: [PATCH] - fix(api/qgis) --- src/api/qgis.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/api/qgis.ts b/src/api/qgis.ts index c924db5..b3805ee 100644 --- a/src/api/qgis.ts +++ b/src/api/qgis.ts @@ -34,7 +34,9 @@ export function clearWorkspace() { */ export function uploadFiles(files: File[]) { let formData = new FormData() - formData.append("file_list", files) + files.forEach(file => { + formData.append("file_list", file) + }) const config = { headers: {