WG- & Vermieter-Management-App (Backend + Dashboard)
Server-side testing showed the 30mb express.json limit itself was fine for payloads up to 30MB, but real phone photos (15-25MB each, ×3 files) can still exceed that. Adds readFileAsCompressedDataUrl: downscales image uploads to max 1800px on the long edge at 0.82 JPEG quality via canvas before converting to a data URL — typically shrinks a multi-MB phone photo to a few hundred KB, which is more than sufficient resolution for a legible ID/Schufa scan. PDFs pass through uncompressed. Also raises the raw pre-upload size check to 25MB/file and the server body limit to 50mb as a safety margin for PDF-heavy cases the client-side compression doesn't touch. |
||
|---|---|---|
| backend | ||
| prisma | ||
| web-dashboard | ||
| .gitignore | ||
| README.md | ||
wg-verwaltung
WG- & Vermieter-Management-App (Backend + Dashboard)