[data-loader] add exception if mime type is not valid.