enforce mimetype pattern