Set default mimeType is application/octet-stream
(cherry picked from commit 14b0ff98a8a24463dcd8401ebdcf7702bcb1edb2)
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user