Skip to content

Commit

Permalink
fix: encode filenames before posting to laskugeneraattori
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelSiidorow committed Oct 14, 2024
1 parent b404712 commit e1057c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/lib/api/external/laskugeneraattori/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`, {
Expand Down

0 comments on commit e1057c7

Please sign in to comment.