FIX[WebApp]: Pass the name along to the serve

Fixes #111
This commit is contained in:
Nicolás Hatcher
2024-10-24 17:34:28 +02:00
committed by Nicolás Hatcher Andrés
parent ffa93309e2
commit 9e5b959ccc

View File

@@ -3,7 +3,7 @@ export async function uploadFile(
fileName: string, fileName: string,
): Promise<Blob> { ): Promise<Blob> {
// Fetch request to upload the file // Fetch request to upload the file
const response = await fetch("/api/upload", { const response = await fetch(`/api/upload/${fileName}`, {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/octet-stream", "Content-Type": "application/octet-stream",