From ac65129ba6c9d294e1d8b47770221dbc6dbdd427 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Wed, 15 Apr 2026 18:32:28 +0000 Subject: [PATCH] Fix ability to discard upload --- ts/view/configuration/UploadDetail.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/view/configuration/UploadDetail.vue b/ts/view/configuration/UploadDetail.vue index a6d7a213..738f5557 100644 --- a/ts/view/configuration/UploadDetail.vue +++ b/ts/view/configuration/UploadDetail.vue @@ -396,10 +396,11 @@ const handleDiscard = async () => { isSubmitting.value = true; try { const response = await fetch(`/api/upload/${props.id}/discard`, { - method: "POST", + body: JSON.stringify({}), headers: { "Content-Type": "application/json", }, + method: "POST", }); if (!response.ok) throw new Error("Failed to discard upload");