From 9e5b959cccf3cedd689a96db3f2474de571f52d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Hatcher?= Date: Thu, 24 Oct 2024 17:34:28 +0200 Subject: [PATCH] FIX[WebApp]: Pass the name along to the serve Fixes #111 --- webapp/src/AppComponents/rpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/AppComponents/rpc.ts b/webapp/src/AppComponents/rpc.ts index 5f988c2..bc22f3a 100644 --- a/webapp/src/AppComponents/rpc.ts +++ b/webapp/src/AppComponents/rpc.ts @@ -3,7 +3,7 @@ export async function uploadFile( fileName: string, ): Promise { // Fetch request to upload the file - const response = await fetch("/api/upload", { + const response = await fetch(`/api/upload/${fileName}`, { method: "POST", headers: { "Content-Type": "application/octet-stream",