From 82964427b6b89b792087cd1b1209bcd714b0e06c Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 6 Oct 2023 16:42:45 +0700 Subject: [PATCH] Set default mimeType is `application/octet-stream` (cherry picked from commit 14b0ff98a8a24463dcd8401ebdcf7702bcb1edb2) --- model/lib/upload/file_info.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/lib/upload/file_info.dart b/model/lib/upload/file_info.dart index 8c9e7ec0a..60580b06b 100644 --- a/model/lib/upload/file_info.dart +++ b/model/lib/upload/file_info.dart @@ -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 get props => [fileName, filePath, fileSize, readStream, bytes];