wg-verwaltung/web-dashboard
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
..
Dockerfile add web-dashboard/Dockerfile 2026-08-12 16:46:21 +00:00
index.html Compress ID/Schufa photos client-side before upload, raise server limit further 2026-08-13 11:52:12 +00:00