mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
media: added more mime types, added mime type check on dropzone
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user