Introduce a list of image mime types we can support as images
E.g. TIFF will now be handled as a generic file, not image, even though it has mime prefix "image/"
This commit is contained in:
parent
bdc66fa603
commit
4662bcdc7d
10 changed files with 30 additions and 10 deletions
|
|
@ -32,7 +32,7 @@ export const useThumbnail = (source: KeanuEvent | File | undefined) => {
|
|||
} else if (source) {
|
||||
const file = source as File;
|
||||
isVideo.value = file.type.startsWith("video/");
|
||||
isImage.value = file.type.startsWith("image/");
|
||||
isImage.value = utils.isSupportedImageType(file.type);
|
||||
fileName.value = file.name;
|
||||
fileSize.value = prettyBytes(file.size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue