diff --git a/lib/src/message_input.dart b/lib/src/message_input.dart index 6714e812..27f9f7bd 100644 --- a/lib/src/message_input.dart +++ b/lib/src/message_input.dart @@ -1556,7 +1556,7 @@ class MessageInputState extends State { return; } - final mimeType = _getMimeType(file.name); + final mimeType = _getMimeType(file.path.split('/').last); if (mimeType.type == 'video' || mimeType.type == 'image') { attachmentType = mimeType.type;