Skip to content

Commit

Permalink
Override .org file extension to use text mimetype (*/* unrecognized o…
Browse files Browse the repository at this point in the history
…n older devices) PR#2455

Prevents `QuickNote.org` from being filtered out of the QuickNote
file-picking dialog.
  • Loading branch information
antler5 authored Oct 26, 2024
1 parent 7683a65 commit 46d0267
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,8 @@ private static String gatherMimeType(final File file) {
return "text/markdown";
} else if (ext.matches("(te?xt)|(taskpaper)")) {
return "text/plain";
} else if (ext.matches("org")) {
return "text/org";
} else if (ext.matches("webp")) {
return "image/webp";
} else if (ext.matches("jpe?g")) {
Expand Down

0 comments on commit 46d0267

Please sign in to comment.