Check filename extension for heic/heif images
This commit is contained in:
parent
69edaeabfb
commit
5c8f740c2a
3 changed files with 10 additions and 5 deletions
|
@ -82,7 +82,7 @@ export async function processAttachment(
|
|||
|
||||
let attachment: InMemoryAttachmentDraftType;
|
||||
try {
|
||||
if (isImageTypeSupported(fileType) || isHeic(fileType)) {
|
||||
if (isImageTypeSupported(fileType) || isHeic(fileType, file.name)) {
|
||||
attachment = await handleImageAttachment(file);
|
||||
} else if (isVideoTypeSupported(fileType)) {
|
||||
attachment = await handleVideoAttachment(file);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue