diff --git a/lib/src/io_file.dart b/lib/src/io_file.dart index b9bc28d..8ef393b 100644 --- a/lib/src/io_file.dart +++ b/lib/src/io_file.dart @@ -106,7 +106,8 @@ class IOFileAdapter { Future fromXFile(XFile file) async { final lastModified = await file.lastModified(); - final contentType = lookupMimeTypeWithDefaultType(file.path); + final contentType = + file.mimeType ?? lookupMimeTypeWithDefaultType(file.path); return _FromXFile( file, diff --git a/pubspec.yaml b/pubspec.yaml index 1a21e1e..55339c7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: ardrive_io description: A new Flutter package project. -version: 1.4.0 +version: 1.4.1 homepage: publish_to: none