# Persist and serve projected message image attachments · flambo/t3code

[View on GitCafe](https://git.cafe/flambo/t3code/commit/6845143b9e2653eddcaa30ab6ca77089bf730c05)

Repository: [flambo/t3code](https://git.cafe/flambo/t3code)

Visibility: public

Requested revision: 6845143b9e2653eddcaa30ab6ca77089bf730c05

Requested commit: 6845143b9e2653eddcaa30ab6ca77089bf730c05

Commit: 6845143b9e2653eddcaa30ab6ca77089bf730c05

Tree: daf4e53994e28d003b2c70934099ea8c8d5e21c8

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Persist and serve projected message image attachments

- Store message attachments in `projection_thread_messages.attachments_json`
- Materialize base64 image attachments to `stateDir/attachments` during projection
- Serve `/attachments/*` from the server and resolve preview URLs from WebSocket origin
- Add migration and tests for projection materialization and attachment serving

```

## Parents

- [aa267ebb0597ed8e3f367410ba4636465c1643f6](https://git.cafe/flambo/t3code/commit/aa267ebb0597ed8e3f367410ba4636465c1643f6?format=markdown)

[Source at this commit](https://git.cafe/flambo/t3code/tree/6845143b9e2653eddcaa30ab6ca77089bf730c05?format=markdown)
