feat(video): media_type discriminator + local gallery video upload (server)

trek_photos gains a media_type column (migration) so the registry can hold video as well as images. A new POST :id/gallery/video endpoint accepts a video plus a client-captured poster (500 MB cap, video MIME/extension allowlist), stores the poster as the thumbnail, and the photo stream serves the poster for the thumbnail kind and the raw file (HTTP Range) for the original — without running the image thumbnailer on video bytes.
This commit is contained in:
Maurice
2026-06-30 10:31:23 +02:00
committed by Maurice
parent c7e4b2781b
commit 993d9bf713
7 changed files with 120 additions and 12 deletions
+6
View File
@@ -56,6 +56,9 @@ export interface JourneyPhoto {
thumbnail_path?: string | null
width?: number | null
height?: number | null
// 'image' (default) or 'video' (#823)
media_type?: string | null
duration_ms?: number | null
}
export interface GalleryPhoto {
@@ -74,6 +77,9 @@ export interface GalleryPhoto {
thumbnail_path?: string | null
width?: number | null
height?: number | null
// 'image' (default) or 'video' (#823)
media_type?: string | null
duration_ms?: number | null
}
export interface JourneyTrip {