feat: add video upload feature with support for validation and processing

- Introduced "video" as a new content type across backend and frontend.
- Updated validation schemas and MIME-type handling for video files.
- Implemented file size limits for videos (10 MB max) in configuration.
- Enhanced upload flow with auto-detection of file types (image, GIF, video).
- Expanded media processing to handle video files and convert them to WebM format.
This commit is contained in:
Mathis HERRIOT
2026-01-28 14:07:00 +01:00
parent f4cd20a010
commit f1a571196d
8 changed files with 54 additions and 25 deletions

View File

@@ -7,7 +7,7 @@ export interface Content {
description?: string;
url: string;
thumbnailUrl?: string;
type: "meme" | "gif";
type: "meme" | "gif" | "video";
mimeType: string;
size: number;
width?: number;