Files
nahodka-back/src/main/java/com/krylov/refound/controller
SlimusMinus 2f6aa0cd1e Add photo attachments to chat messages
- message_attachments table (cascade with messages); files stored under
  chat/{chatId}/ in the images bucket
- POST /api/v1/chats/{chatId}/messages (multipart, up to 10 photos + text);
  message is broadcast over WebSocket as before
- photos are always re-encoded so EXIF (geotag, device) never reaches storage
- presigned links (6h) only in participant-checked responses, refresh via
  GET /api/v1/chats/{chatId}/attachments/{id}/url
- public /api/v1/files no longer serves or deletes chat/ keys
- chat deletion removes files; orphan cleanup keeps referenced attachments
- rate limit chat-photo: 60/hour

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:26:37 +03:00
..
2026-10-06 02:08:28 +03:00
2026-09-23 23:34:05 +03:00
2026-10-27 22:49:16 +03:00
2026-07-31 01:08:53 +03:00
2026-07-31 01:08:53 +03:00
2026-09-23 23:34:05 +03:00