Set default mimeType is application/octet-stream

This commit is contained in:
dab246 authored and Dat Vu committed 2023-10-06 19:02:57 +07:00
1 parent ee0b9b3281
commit 14b0ff98a8
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ class FileInfo with EquatableMixin {
String get fileExtension => fileName.split('.').last;
String get mimeType => lookupMimeType(kIsWeb ? fileName : filePath) ?? 'application/json; charset=UTF-8';
String get mimeType => lookupMimeType(kIsWeb ? fileName : filePath) ?? 'application/octet-stream';
@override
List<Object?> get props => [fileName, filePath, fileSize, readStream, bytes];