media: added more mime types, added mime type check on dropzone

This commit is contained in:
dswbx
2025-02-22 13:14:32 +01:00
parent 837b0a3d43
commit f801d3a556
8 changed files with 99 additions and 24 deletions

View File

@@ -5,7 +5,7 @@ export function getExtensionFromName(filename: string): string | undefined {
if (!filename.includes(".")) return;
const parts = filename.split(".");
return parts[parts.length - 1];
return parts[parts.length - 1]?.toLowerCase();
}
export function getRandomizedFilename(file: File, length?: number): string;