diff --git a/apps/web/src/lib/api/external/laskugeneraattori/actions.ts b/apps/web/src/lib/api/external/laskugeneraattori/actions.ts index 50bd3fc5..ecae611b 100644 --- a/apps/web/src/lib/api/external/laskugeneraattori/actions.ts +++ b/apps/web/src/lib/api/external/laskugeneraattori/actions.ts @@ -79,7 +79,7 @@ export async function SaveAction( const data = new FormData(); data.append("data", JSON.stringify(json)); attachments.forEach((attachment) => { - data.append("attachments", attachment); + data.append("attachments", attachment, encodeURIComponent(attachment.name)); }); const res = await fetch(`${laskugeneraattoriBaseUrl}/invoices`, {