fix: update Blob creation for file uploads to handle buffer offsets correctly
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user