diff --git a/lib/src/utils/matrix_file.dart b/lib/src/utils/matrix_file.dart index 3c728f2..bfc0f3d 100644 --- a/lib/src/utils/matrix_file.dart +++ b/lib/src/utils/matrix_file.dart @@ -19,7 +19,8 @@ class MatrixFile { } MatrixFile({this.bytes, this.name, this.mimeType}) { - mimeType ??= lookupMimeType(name, headerBytes: bytes); + mimeType ??= + lookupMimeType(name, headerBytes: bytes) ?? 'application/octet-stream'; name = name.split('/').last.toLowerCase(); }