Skip to content

Commit

Permalink
Use octet-stream for android, closes #709
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed May 19, 2024
1 parent 4112256 commit 3324f07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/lib/src/helpers/asset.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension AssetFileTypeHelper on AssetFileType {
};

List<String> 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'],
Expand Down
2 changes: 1 addition & 1 deletion app/lib/api/save.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Future<void> exportZip(BuildContext context, List<int> bytes,

Future<void> exportData(BuildContext context, List<int> 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) {
Expand Down
1 change: 1 addition & 0 deletions metadata/en-US/changelogs/106.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3324f07

Please sign in to comment.