add support for video type

This commit is contained in:
Victor Dibia 2024-10-10 14:50:53 -07:00
parent 8bcb720e0a
commit 5871bb59a6
1 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,9 @@ const MetaDataView = ({ metadata }: { metadata: any | null }) => {
const is_code = ["code"].includes(file.type); const is_code = ["code"].includes(file.type);
const is_csv = ["csv"].includes(file.type); const is_csv = ["csv"].includes(file.type);
const is_pdf = ["pdf"].includes(file.type); const is_pdf = ["pdf"].includes(file.type);
const is_video = ["video"].includes(file.type); const is_video =
["video"].includes(file.type) ||
["mp4", "webm", "ogg"].includes(file.extension);
const file_name = file.name || "unknown"; const file_name = file.name || "unknown";
const file_path = file.path || "unknown"; const file_path = file.path || "unknown";