updated mobile media uploader logic to be more redundant

This commit is contained in:
user
2026-03-01 19:54:10 +02:00
parent 3940130dad
commit 82e9dbed1a
6 changed files with 239 additions and 2 deletions

View File

@@ -146,7 +146,8 @@ Failure:
- Media:
- Raw file is uploaded first and persisted in `file`.
- Then one `mobile_media_asset` row is created referencing uploaded `fileId`.
- Dedup key: `(deviceId, externalMediaId)` when provided.
- Dedup key #1: `(deviceId, externalMediaId)` when provided.
- Dedup key #2 fallback: `(deviceId, hash)` where hash is client-provided or server-computed SHA-256 of file bytes.
## Operator Checklist