Handle MIME media types which have charset param - fixes #685
This commit is contained in:
parent
a3b4950b78
commit
6b676f7513
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user