feat: allow application/octet-stream MIME type for PDF uploads in receipt import

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Nils-Johan Gynther
2026-04-30 13:04:23 +02:00
parent d7881c6cf7
commit 57fe168543
3 changed files with 25 additions and 3 deletions
@@ -1,5 +1,6 @@
import {
Controller,
HttpCode,
Post,
Request,
UploadedFile,
@@ -19,12 +20,14 @@ const ALLOWED_MIMES = [
'image/heic',
'image/heif',
'application/pdf',
'application/octet-stream', // Flutter Web skickar detta för PDF-filer
];
@Controller('receipt-import')
export class ReceiptImportController {
constructor(private readonly receiptImportService: ReceiptImportService) {}
@HttpCode(200)
@Post()
@Throttle({ default: { ttl: 60_000, limit: 20 } })
@UseInterceptors(