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",