Skip to content

Commit

Permalink
Set default mimeType is application/octet-stream
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Oct 6, 2023
1 parent ee0b9b3 commit 14b0ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/lib/upload/file_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 14b0ff9

Please sign in to comment.