added string parameter support for mime type