Harden attachment materialization and static file path handling

- Materialize only valid image data URLs and restrict inferred file extensions to a safe whitelist
- Preserve existing message attachments on upsert unless explicitly replaced or cleared
- Serve static `/` via `index.html` and block traversal attempts in static file requests
9f56dd0193Julius Marminge committed on 2/28/2026, 4:18:35 AMparent6845143
7 files changedLine totals unavailable