|
|
@ -188,12 +188,15 @@ public class EntityAttachment {
|
|
|
|
type = gtype;
|
|
|
|
type = gtype;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ("gpx".equals(extension))
|
|
|
|
if ("csv".equals(extension))
|
|
|
|
return "application/gpx+xml";
|
|
|
|
return "text/csv";
|
|
|
|
|
|
|
|
|
|
|
|
if ("eml".equals(extension))
|
|
|
|
if ("eml".equals(extension))
|
|
|
|
return "message/rfc822";
|
|
|
|
return "message/rfc822";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ("gpx".equals(extension))
|
|
|
|
|
|
|
|
return "application/gpx+xml";
|
|
|
|
|
|
|
|
|
|
|
|
if ("text/plain".equals(type) && "ics".equals(extension))
|
|
|
|
if ("text/plain".equals(type) && "ics".equals(extension))
|
|
|
|
return "text/calendar";
|
|
|
|
return "text/calendar";
|
|
|
|
|
|
|
|
|
|
|
|