fix: update Blob creation for file uploads to handle buffer offsets correctly

This commit is contained in:
Nils-Johan Gynther
2026-04-30 20:12:10 +02:00
parent 797241f262
commit 8910e6817d
3 changed files with 4 additions and 3 deletions
@@ -40,7 +40,7 @@ export class ReceiptImportService {
const form = new FormData();
form.append(
'file',
new Blob([file.buffer], { type: file.mimetype }),
new Blob([file.buffer.buffer.slice(file.buffer.byteOffset, file.buffer.byteOffset + file.buffer.byteLength)], { type: file.mimetype }),
file.originalname,
);