Better guess attached file type

This commit is contained in:
M66B
2019-12-10 21:16:08 +01:00
parent abe6c136a1
commit d9a592569b
2 changed files with 15 additions and 6 deletions

View File

@@ -2383,7 +2383,7 @@ public class FragmentCompose extends FragmentBase {
ftype = null;
}
if (TextUtils.isEmpty(ftype))
if (TextUtils.isEmpty(ftype) || "*/*".equals(ftype))
ftype = Helper.guessMimeType(fname);
if (fsize != null && fsize <= 0)