added exception if mime type is not supported