Sets up mime type.