src = storetype.src (mlenv);
if (type.empty ()) {
- if (! fmotor && dispname.length () > 0) {
- type = mimetype (getExt (dispname));
- } else {
- type = mimetype (getExt (filename));
- }
+ type = mimetype (getExt (src));
} else if (! checkMimeType (type)) {
type = mimetype (type);
}
src = storetype.src (mlenv);
if (type.empty ()) {
- if (! fmotor && dispname.length () > 0) {
+ if (dispname.length () > 0) {
type = mimetype (getExt (dispname));
} else {
- type = mimetype (getExt (filename));
+ type = mimetype (getExt (src));
}
} else if (! checkMimeType (type)) {
type = mimetype (type);