Use the mime library from Dart team

mime:
http://pub.dartlang.org/packages/mime

It is similar to the content_type library, except it is more complete.