Handle MIME media types which have charset param - fixes #685

This commit is contained in:
Tom Morris 2013-03-04 17:45:34 -05:00
parent a3b4950b78
commit 6b676f7513

View File

@ -270,6 +270,7 @@ public class ImportingManager {
static public String getFormat(String fileName, String mimeType) {
String fileNameFormat = getFormatFromFileName(fileName);
mimeType = mimeType.split(";")[0];
String mimeTypeFormat = mimeType == null ? null : getFormatFromMimeType(mimeType);
if (mimeTypeFormat == null) {
return fileNameFormat;