Fix ability to discard upload

This commit is contained in:
Eli Ribble 2026-04-15 18:32:28 +00:00
parent 322be2fe40
commit ac65129ba6
No known key found for this signature in database

View file

@ -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");