mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 09:31:11 +01:00
Improved type guessing
This commit is contained in:
@@ -2879,7 +2879,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
ftype = null;
|
||||
}
|
||||
|
||||
if (TextUtils.isEmpty(ftype) || "*/*".equals(ftype))
|
||||
if (TextUtils.isEmpty(ftype) ||
|
||||
"*/*".equals(ftype) ||
|
||||
"application/octet-stream".equals(ftype))
|
||||
ftype = Helper.guessMimeType(fname);
|
||||
|
||||
if (fsize != null && fsize <= 0)
|
||||
|
||||
Reference in New Issue
Block a user