Workaround incorrect Powerpoint mime type

This commit is contained in:
M66B 2020-05-13 09:23:58 +02:00
parent fd3147ce8b
commit e3f899a81f
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ public class EntityAttachment {
if ("application/x-pdf".equals(type))
return "application/pdf";
if ("application/vnd.ms-pps".equals(type))
return "application/vnd.ms-powerpoint";
if (TextUtils.isEmpty(type) ||
type.startsWith("unknown/") || type.endsWith("/unknown") ||
"application/octet-stream".equals(type) || "application/zip".equals(type)) {