diff --git a/ts/util/Attachment.std.ts b/ts/util/Attachment.std.ts index 355890a753..631612bc88 100644 --- a/ts/util/Attachment.std.ts +++ b/ts/util/Attachment.std.ts @@ -772,7 +772,7 @@ export const getFileExtension = ( case 'audio/mpeg': return 'mp3'; default: - return attachment.contentType.split('/')[1]; + return attachment.contentType.split('/')[1].split(/[+;\s]/)[0]; } };