Cannot preview image with file name containing image extension (jpg,..) and mime type is application/octet-stream
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -41,7 +41,7 @@ extension AttachmentExtension on Attachment {
|
||||
|
||||
bool get isHTMLFile => type?.isHTMLFile(fileName: name) ?? false;
|
||||
|
||||
bool get isImage => type?.isImageFile() ?? false;
|
||||
bool get isImage => type?.isImageSupportedPreview(fileName: name) ?? false;
|
||||
|
||||
bool get isText => (type?.isTextFile() ?? false)
|
||||
|| name?.endsWith('.txt') == true
|
||||
|
||||
Reference in New Issue
Block a user