From 051dc50605e3b9f41ed8842852c9dab79e9c9558 Mon Sep 17 00:00:00 2001 From: Andreea Draghicescu <andreeaidr@gmail.com> Date: Thu, 18 Apr 2024 17:00:01 +0400 Subject: [PATCH] Add video mime type support for file inputs --- src/components/FileInput/FileInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/FileInput/FileInput.tsx b/src/components/FileInput/FileInput.tsx index edb7d4d27..6b62c1b80 100644 --- a/src/components/FileInput/FileInput.tsx +++ b/src/components/FileInput/FileInput.tsx @@ -19,8 +19,9 @@ const MIME_TYPES = { png: '.png,image/png', jpeg: '.jpeg,image/jpeg', jpg: '.jpg,image/jpg', - images: 'image/*', + images: 'image/*, video/*', pdf: '.pdf,application/pdf', + mp4: '.mp4,video/mp4', } type AllowedMimeTypes = keyof typeof MIME_TYPES