diff --git a/api/lib/src/helpers/asset.dart b/api/lib/src/helpers/asset.dart index adc8f2fd15ce..536beefe63db 100644 --- a/api/lib/src/helpers/asset.dart +++ b/api/lib/src/helpers/asset.dart @@ -26,7 +26,7 @@ extension AssetFileTypeHelper on AssetFileType { }; List getMimeTypes() => switch (this) { - AssetFileType.note => ['application/zip'], + AssetFileType.note => ['application/octet-stream', 'application/zip'], AssetFileType.image => ['image/*'], AssetFileType.markdown => ['text/markdown'], AssetFileType.pdf => ['application/pdf'], diff --git a/app/lib/api/save.dart b/app/lib/api/save.dart index 648b9f718f12..a38b90799bf3 100644 --- a/app/lib/api/save.dart +++ b/app/lib/api/save.dart @@ -57,7 +57,7 @@ Future exportZip(BuildContext context, List bytes, Future exportData(BuildContext context, List bytes, [bool share = false]) => - exportFile(context, bytes, 'bfly', 'application/zip', + exportFile(context, bytes, 'bfly', 'application/octet-stream', 'dev.linwood.butterfly.note', share); void saveToClipboard(BuildContext context, String text) { diff --git a/metadata/en-US/changelogs/106.txt b/metadata/en-US/changelogs/106.txt index fb89941d9f2e..0edaaeb18f32 100644 --- a/metadata/en-US/changelogs/106.txt +++ b/metadata/en-US/changelogs/106.txt @@ -9,6 +9,7 @@ * Fix grid switch on file view will be shown in navigator * Fix missing scrollbar in home page * Fix scale proportional not working +* Fix bfly file import and export on android ([#709](https://github.com/LinwoodDev/Butterfly/issues/709)) * Upgrade to flutter 3.22 Read more here: https://linwood.dev/butterfly/2.1.1-rc.1 \ No newline at end of file