From 0bd0146efb9e3fe7676826e4e95c3461d1a1da6a Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 3 Sep 2024 20:55:10 +0100 Subject: fix mime checks (#5118) --- src/lib/constants.ts | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/constants.ts') diff --git a/src/lib/constants.ts b/src/lib/constants.ts index ccd5f2dee..930f57326 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -136,3 +136,12 @@ export const GIF_FEATURED = (params: string) => `${GIF_SERVICE}/tenor/v2/featured?${params}` export const MAX_LABELERS = 20 + +export const SUPPORTED_MIME_TYPES = [ + 'video/mp4', + 'video/mpeg', + 'video/webm', + 'video/quicktime', +] as const + +export type SupportedMimeTypes = (typeof SUPPORTED_MIME_TYPES)[number] -- cgit 1.4.1