Skip to content

Commit

Permalink
Merge pull request #18 from ar-io/PE-4896-drag-and-drop-applies-wrong…
Browse files Browse the repository at this point in the history
…-content-type-to-files

v1.4.1
  • Loading branch information
thiagocarvalhodev authored Oct 27, 2023
2 parents 487156d + 19616c9 commit 441c377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/src/io_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ class IOFileAdapter {

Future<IOFile> fromXFile(XFile file) async {
final lastModified = await file.lastModified();
final contentType = lookupMimeTypeWithDefaultType(file.path);
final contentType =
file.mimeType ?? lookupMimeTypeWithDefaultType(file.path);

return _FromXFile(
file,
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 441c377

Please sign in to comment.