wg-verwaltung/backend
bernd 48fb4118fd Compress ID/Schufa photos client-side before upload, raise server limit further
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.
2026-08-13 11:52:12 +00:00
..
prisma Seed: skip if DB already has data instead of wiping it 2026-08-13 07:18:13 +00:00
scripts Add Homematic IP smart lock integration (Access Point + App setup) 2026-08-13 08:21:19 +00:00
src Compress ID/Schufa photos client-side before upload, raise server limit further 2026-08-13 11:52:12 +00:00
Dockerfile add backend/Dockerfile 2026-08-12 16:26:09 +00:00
package-lock.json Add 1-click PDF export for tickets (craftsman handoff) 2026-08-13 07:27:01 +00:00
package.json Sync trash calendar from official Nackenheim/KAW waste collection API 2026-08-13 08:58:21 +00:00
tsconfig.json add backend/tsconfig.json 2026-08-12 16:26:09 +00:00