Assign mimetype